diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-16 23:08:42 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-17 06:09:11 +0000 |
commit | 25d9a7b5f1b880ab283947da28a8216dc9b7e551 (patch) | |
tree | 56554c46ac375e522135995b78adc3bfc4f2d876 /epan/wslua/wslua_proto.c | |
parent | 762b8d78ecc001f968b3e0b5f73c22eac4c091ea (diff) |
Don't use <ctype.h> macros, and eliminate an include of <ctype.h>.
This avoids locale-dependent tests.
Change-Id: I709ff6b1a837fb0390b29f911d3b9ef1015a2d1e
Reviewed-on: https://code.wireshark.org/review/4758
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/wslua/wslua_proto.c')
-rw-r--r-- | epan/wslua/wslua_proto.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index 53e580a204..3d57092828 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -324,8 +324,7 @@ WSLUA_METAMETHOD Prefs__newindex(lua_State* L) { * underscores, and dots appear in the preference name. */ for (c = name; *c != '\0'; c++) { - if (!isascii((guchar)*c) || - (!islower((guchar)*c) && !isdigit((guchar)*c) && *c != '_' && *c != '.')) + if (!g_ascii_islower(*c) && !g_ascii_isdigit(*c) && *c != '_' && *c != '.') { luaL_error(L,"illegal preference name \"%s\", only lower-case ASCII letters, " "numbers, underscores and dots may be used", name); |