aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ats-tool/gnunet-ats.c6
-rw-r--r--src/conversation/gnunet-conversation.c2
-rw-r--r--src/core/gnunet-service-core_sessions.c1
-rw-r--r--src/dns/dnsparser.c4
-rw-r--r--src/testbed/testbed_api_topology.c2
-rw-r--r--src/topology/friends.c2
6 files changed, 9 insertions, 8 deletions
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c
index 5ec7693b1..d88e6d523 100644
--- a/src/ats-tool/gnunet-ats.c
+++ b/src/ats-tool/gnunet-ats.c
@@ -872,8 +872,8 @@ run (void *cls,
872 872
873 for (c = 0; c < strlen (opt_type_str); c++) 873 for (c = 0; c < strlen (opt_type_str); c++)
874 { 874 {
875 if (isupper (opt_type_str[c])) 875 if (isupper ((unsigned char) opt_type_str[c]))
876 opt_type_str[c] = tolower (opt_type_str[c]); 876 opt_type_str[c] = tolower ((unsigned char) opt_type_str[c]);
877 } 877 }
878 878
879 if (0 == strcasecmp ("latency", opt_type_str)) 879 if (0 == strcasecmp ("latency", opt_type_str))
@@ -974,7 +974,7 @@ main (int argc,
974 gettext_noop ("set preference for the given peer"), 974 gettext_noop ("set preference for the given peer"),
975 &opt_set_pref), 975 &opt_set_pref),
976 976
977 GNUNET_GETOPT_option_flag ('q', 977 GNUNET_GETOPT_option_flag ('q',
978 "quotas", 978 "quotas",
979 gettext_noop ("print all configured quotas"), 979 gettext_noop ("print all configured quotas"),
980 &opt_print_quotas), 980 &opt_print_quotas),
diff --git a/src/conversation/gnunet-conversation.c b/src/conversation/gnunet-conversation.c
index 8f9ddec25..00ab65680 100644
--- a/src/conversation/gnunet-conversation.c
+++ b/src/conversation/gnunet-conversation.c
@@ -1091,7 +1091,7 @@ handle_command_string (char *message,
1091 strlen (commands[i].command)))) 1091 strlen (commands[i].command))))
1092 i++; 1092 i++;
1093 ptr = &message[strlen (commands[i].command)]; 1093 ptr = &message[strlen (commands[i].command)];
1094 while (isspace ((int) *ptr)) 1094 while (isspace ((unsigned char) *ptr))
1095 ptr++; 1095 ptr++;
1096 if ('\0' == *ptr) 1096 if ('\0' == *ptr)
1097 ptr = NULL; 1097 ptr = NULL;
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index 034f2e883..5d34b7c26 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -975,6 +975,7 @@ GSC_SESSIONS_set_typemap (const struct GNUNET_PeerIdentity *peer,
975 session = find_session (peer); 975 session = find_session (peer);
976 if (NULL == session) 976 if (NULL == session)
977 { 977 {
978 GSC_TYPEMAP_destroy (nmap);
978 GNUNET_break (0); 979 GNUNET_break (0);
979 return; 980 return;
980 } 981 }
diff --git a/src/dns/dnsparser.c b/src/dns/dnsparser.c
index 36b4c36f1..30d9245ff 100644
--- a/src/dns/dnsparser.c
+++ b/src/dns/dnsparser.c
@@ -1278,8 +1278,8 @@ GNUNET_DNSPARSER_hex_to_bin (const char *hex,
1278 in[2] = '\0'; 1278 in[2] = '\0';
1279 for (off = 0; off < data_size; off++) 1279 for (off = 0; off < data_size; off++)
1280 { 1280 {
1281 in[0] = tolower ((int) hex[off * 2]); 1281 in[0] = tolower ((unsigned char) hex[off * 2]);
1282 in[1] = tolower ((int) hex[off * 2 + 1]); 1282 in[1] = tolower ((unsigned char) hex[off * 2 + 1]);
1283 if (1 != sscanf (in, "%x", &h)) 1283 if (1 != sscanf (in, "%x", &h))
1284 return off; 1284 return off;
1285 idata[off] = (uint8_t) h; 1285 idata[off] = (uint8_t) h;
diff --git a/src/testbed/testbed_api_topology.c b/src/testbed/testbed_api_topology.c
index 7bc36d1b4..7d0ccd269 100644
--- a/src/testbed/testbed_api_topology.c
+++ b/src/testbed/testbed_api_topology.c
@@ -1051,7 +1051,7 @@ gen_topo_from_file (struct TopologyContext *tc,
1051 state = PEER_INDEX; 1051 state = PEER_INDEX;
1052 while (offset < fs) 1052 while (offset < fs)
1053 { 1053 {
1054 if (0 != isspace (data[offset])) 1054 if (0 != isspace ((unsigned char) data[offset]))
1055 { 1055 {
1056 offset++; 1056 offset++;
1057 continue; 1057 continue;
diff --git a/src/topology/friends.c b/src/topology/friends.c
index a960fad17..65f2700bb 100644
--- a/src/topology/friends.c
+++ b/src/topology/friends.c
@@ -95,7 +95,7 @@ GNUNET_FRIENDS_parse (const struct GNUNET_CONFIGURATION_Handle *cfg,
95 pos = 0; 95 pos = 0;
96 while (pos < fsize) 96 while (pos < fsize)
97 { 97 {
98 while ((pos < fsize) && (! isspace ((int) data[pos]))) 98 while ((pos < fsize) && (! isspace ((unsigned char) data[pos])))
99 pos++; 99 pos++;
100 if (GNUNET_OK != 100 if (GNUNET_OK !=
101 GNUNET_CRYPTO_eddsa_public_key_from_string (&data[start], 101 GNUNET_CRYPTO_eddsa_public_key_from_string (&data[start],