aboutsummaryrefslogtreecommitdiff
path: root/src/topology
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/topology
parent12de18ea7dd417cb20c2887f69cd6ce12cb0c4b5 (diff)
downloadgnunet-a390e47c7947c98d4054d293ee96d989d0e27dfc.tar.gz
gnunet-a390e47c7947c98d4054d293ee96d989d0e27dfc.zip
-fix friends file parser logic, a NOT operator is a wonderful thing sometimes
Diffstat (limited to 'src/topology')
-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 81f00c667..5c074e941 100644
--- a/src/topology/friends.c
+++ b/src/topology/friends.c
@@ -89,7 +89,7 @@ GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg,
89 pos = 0; 89 pos = 0;
90 while (pos < fsize) 90 while (pos < fsize)
91 { 91 {
92 while ((pos < fsize) && isspace ((unsigned char) data[pos])) 92 while ((pos < fsize) && (! isspace ((int) data[pos])))
93 pos++; 93 pos++;
94 if (GNUNET_OK != 94 if (GNUNET_OK !=
95 GNUNET_CRYPTO_ecc_public_sign_key_from_string (&data[start], 95 GNUNET_CRYPTO_ecc_public_sign_key_from_string (&data[start],
@@ -97,7 +97,7 @@ GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg,
97 &pid.public_key)) 97 &pid.public_key))
98 { 98 {
99 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 99 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
100 _("Syntax error in topology specification at offset %llu, skipping bytes `%.*s'.\n"), 100 _("Syntax error in FRIENDS file at offset %llu, skipping bytes `%.*s'.\n"),
101 (unsigned long long) pos, 101 (unsigned long long) pos,
102 (int) (pos - start), 102 (int) (pos - start),
103 &data[start]); 103 &data[start]);