Silence lwip_tolower compiler warning

Fix gcc build warning: array subscript has type 'char' [-Wchar-subscripts].

Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2018-06-14 09:47:19 +08:00
parent b0e5eeb7d2
commit 7c03f4cf46

View File

@ -229,7 +229,7 @@ typedef int ssize_t;
#define lwip_isxdigit(c) isxdigit((unsigned char)(c))
#define lwip_islower(c) islower((unsigned char)(c))
#define lwip_isspace(c) isspace((unsigned char)(c))
#define lwip_tolower(c) tolower(c)
#define lwip_tolower(c) tolower((unsigned char)(c))
#endif
/** C++ const_cast<target_type>(val) equivalent to remove constness from a value (GCC -Wcast-qual) */