[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-13
From: |
Pawel Kot |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-133-g3b82d67 |
Date: |
Thu, 27 Jan 2011 13:57:10 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 3b82d67a950fc337779206864aa4a4a3c714131b (commit)
from 6869e9b010f8059fbfb86065b4a267c9f832cb6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=3b82d67a950fc337779206864aa4a4a3c714131b
commit 3b82d67a950fc337779206864aa4a4a3c714131b
Author: Pawel Kot <address@hidden>
Date: Thu Jan 27 14:56:15 2011 +0100
Microsoft Visual C++ 2010 Express does not know isblank(). Replace with
isspace() as it is the way the rest of the code uses anwyway.
diff --git a/common/cfgreader.c b/common/cfgreader.c
index ff2e623..b40e5e6 100644
--- a/common/cfgreader.c
+++ b/common/cfgreader.c
@@ -889,7 +889,7 @@ gn_phone_model *gn_cfg_get_phone_model(struct gn_cfg_header
*cfg, const char *pr
while (*comma && *comma != ',')
comma++;
end = comma;
- while (end > val && (isblank(*end) || *end == ','))
+ while (end > val && (isspace(*end) || *end == ','))
end--;
count = end - val + 1;
snprintf(model, GN_MODEL_MAX_LENGTH, "%.*s", count, val);
@@ -900,7 +900,7 @@ gn_phone_model *gn_cfg_get_phone_model(struct gn_cfg_header
*cfg, const char *pr
while (*val && *val != ',')
val++;
/* This skips also empty fields */
- while (*val && (*val == ',' || isblank(*val)))
+ while (*val && (*val == ',' || isspace(*val)))
val++;
if (!*val)
break;
@@ -928,7 +928,7 @@ gn_phone_model *gn_cfg_get_phone_model(struct gn_cfg_header
*cfg, const char *pr
while (*comma && *comma != ',')
comma++;
end = comma;
- while (end > val && (isblank(*end) || *end == ','))
+ while (end > val && (isspace(*end) || *end == ','))
end--;
count = end - val + 1;
dprintf("Unknown flag \"%.*s\"\n", count, val);
diff --git a/common/misc.c b/common/misc.c
index 7b0b7e6..1101c96 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -1,7 +1,5 @@
/*
- $Id$
-
G N O K I I
A Linux/Unix toolset and driver for the mobile phones.
@@ -24,7 +22,7 @@
Copyright (C) 1999-2000 Hugh Blemings & Pavel JanÃk ml.
Copyright (C) 2000 Jan Derfinak
- Copyright (C) 2000-2004 Pawel Kot
+ Copyright (C) 2000-2011 Pawel Kot
Copyright (C) 2001 Jan Kratochvil, Ladis Michl, Chris Kemp
Copyright (C) 2002-2004 BORBELY Zoltan
Copyright (C) 2002 Manfred Jonsson, Markus Plail
@@ -651,13 +649,13 @@ void gnokii_strfreev(char **str_array)
*/
int gnokii_strcmpsep(const char *s1, const char *s2, char sep)
{
- while (isblank(*s2))
+ while (isspace(*s2))
s2++;
while (*s1 && *s1 == *s2) {
s1++;
s2++;
}
- while (isblank(*s2))
+ while (isspace(*s2))
s2++;
if (!*s1 && *s2 == sep)
return 0;
-----------------------------------------------------------------------
Summary of changes:
common/cfgreader.c | 6 +++---
common/misc.c | 8 +++-----
2 files changed, 6 insertions(+), 8 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-133-g3b82d67,
Pawel Kot <=