From 6b13103dad92d505e038c268af66aeb04b7b4d87 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 16 Jan 2015 16:50:23 -0300 Subject: Replace isdigit/isalpha/.../tolower/toupper with glib variants This fixes warnings about passing signed chars to them (apparently they are implemented as macros that do array lookups without checks in some platforms, yay) Specifically: functions=isalnum|isalpha|isdigit|isspace|isxdigit|tolower|toupper sed -ir "s/$functions/g_ascii_&/g" **/*.c --- set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'set.c') diff --git a/set.c b/set.c index c8ee9270..00e4bc81 100644 --- a/set.c +++ b/set.c @@ -225,7 +225,7 @@ char *set_eval_int( set_t *set, char *value ) s ++; for( ; *s; s ++ ) - if( !isdigit( *s ) ) + if( !g_ascii_isdigit( *s ) ) return SET_INVALID; return value; -- cgit v1.2.3