mirror of
https://framagit.org/bortzmeyer/echoping
synced 2024-11-10 19:10:34 +00:00
Suppress a warning on NetBSD
This commit is contained in:
parent
9b25a0ad02
commit
2f01006a35
@ -43,7 +43,7 @@ to_upper(char *input)
|
|||||||
char *result;
|
char *result;
|
||||||
result = (char *) malloc(strlen(input));
|
result = (char *) malloc(strlen(input));
|
||||||
for (c = 0; c < strlen(input); c++)
|
for (c = 0; c < strlen(input); c++)
|
||||||
result[c] = toupper(input[c]);
|
result[c] = toupper((int)input[c]);
|
||||||
result[strlen(input)] = '\0';
|
result[strlen(input)] = '\0';
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user