for (c = 0; c < strlen (opt_type_str); c++)
{
- if (isupper (opt_type_str[c]))
- opt_type_str[c] = tolower (opt_type_str[c]);
+ if (isupper ((unsigned char) opt_type_str[c]))
+ opt_type_str[c] = tolower ((unsigned char) opt_type_str[c]);
}
if (0 == strcasecmp ("latency", opt_type_str))
gettext_noop ("set preference for the given peer"),
&opt_set_pref),
- GNUNET_GETOPT_option_flag ('q',
+ GNUNET_GETOPT_option_flag ('q',
"quotas",
gettext_noop ("print all configured quotas"),
&opt_print_quotas),
strlen (commands[i].command))))
i++;
ptr = &message[strlen (commands[i].command)];
- while (isspace ((int) *ptr))
+ while (isspace ((unsigned char) *ptr))
ptr++;
if ('\0' == *ptr)
ptr = NULL;
session = find_session (peer);
if (NULL == session)
{
+ GSC_TYPEMAP_destroy (nmap);
GNUNET_break (0);
return;
}
in[2] = '\0';
for (off = 0; off < data_size; off++)
{
- in[0] = tolower ((int) hex[off * 2]);
- in[1] = tolower ((int) hex[off * 2 + 1]);
+ in[0] = tolower ((unsigned char) hex[off * 2]);
+ in[1] = tolower ((unsigned char) hex[off * 2 + 1]);
if (1 != sscanf (in, "%x", &h))
return off;
idata[off] = (uint8_t) h;
state = PEER_INDEX;
while (offset < fs)
{
- if (0 != isspace (data[offset]))
+ if (0 != isspace ((unsigned char) data[offset]))
{
offset++;
continue;
pos = 0;
while (pos < fsize)
{
- while ((pos < fsize) && (! isspace ((int) data[pos])))
+ while ((pos < fsize) && (! isspace ((unsigned char) data[pos])))
pos++;
if (GNUNET_OK !=
GNUNET_CRYPTO_eddsa_public_key_from_string (&data[start],