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:
Our Air Quality 2018-04-25 23:44:32 +10:00 committed by goldsimon
parent c34120e855
commit 373bf8c36d

View File

@ -493,7 +493,7 @@ netbiosns_set_name(const char *hostname)
/* make name into upper case */
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';
}