aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-07 19:28:15 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-07 19:28:15 +0000
commita390e47c7947c98d4054d293ee96d989d0e27dfc (patch)
tree2e8c25bcaa7ac41fa6873c27fd397ffd8bae1830 /src
parent12de18ea7dd417cb20c2887f69cd6ce12cb0c4b5 (diff)
-fix friends file parser logic, a NOT operator is a wonderful thing sometimes
Diffstat (limited to 'src')
-rw-r--r--src/topology/friends.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/topology/friends.c b/src/topology/friends.c
index 81f00c6677..5c074e941b 100644
--- a/src/topology/friends.c
+++ b/src/topology/friends.c
@@ -89,7 +89,7 @@ GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg,
pos = 0;
while (pos < fsize)
{
- while ((pos < fsize) && isspace ((unsigned char) data[pos]))
+ while ((pos < fsize) && (! isspace ((int) data[pos])))
pos++;
if (GNUNET_OK !=
GNUNET_CRYPTO_ecc_public_sign_key_from_string (&data[start],
@@ -97,7 +97,7 @@ GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg,
&pid.public_key))
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- _("Syntax error in topology specification at offset %llu, skipping bytes `%.*s'.\n"),
+ _("Syntax error in FRIENDS file at offset %llu, skipping bytes `%.*s'.\n"),
(unsigned long long) pos,
(int) (pos - start),
&data[start]);