Introduce lwip_toupper and use it in netbiosns.c

This fixes build error when LWIP_NO_CTYPE_H=1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Axel Lin
2018-06-27 23:16:03 +08:00
parent a56e61c942
commit 4027a2ae58
2 changed files with 3 additions and 1 deletions

View File

@@ -499,7 +499,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((unsigned char)hostname[i]);
netbiosns_local_name[i] = (char)lwip_toupper(hostname[i]);
}
netbiosns_local_name[copy_len] = '\0';
}