mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Quieten a toupper() compiler warning.
Gcc complains that an array index is a 'char' when passing a 'char' to toupper(). Quieten this by coercing to an 'unsigned char'. Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
parent
c34120e855
commit
373bf8c36d
@ -493,7 +493,7 @@ netbiosns_set_name(const char *hostname)
|
|||||||
|
|
||||||
/* make name into upper case */
|
/* make name into upper case */
|
||||||
for (i = 0; i < copy_len; i++ ) {
|
for (i = 0; i < copy_len; i++ ) {
|
||||||
netbiosns_local_name[i] = (char)toupper(hostname[i]);
|
netbiosns_local_name[i] = (char)toupper((unsigned char)hostname[i]);
|
||||||
}
|
}
|
||||||
netbiosns_local_name[copy_len] = '\0';
|
netbiosns_local_name[copy_len] = '\0';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user