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 --- lib/ini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ini.c') diff --git a/lib/ini.c b/lib/ini.c index ad409283..3819e3da 100644 --- a/lib/ini.c +++ b/lib/ini.c @@ -62,11 +62,11 @@ static char *ini_strip_whitespace( char *in ) { char *e; - while( isspace( *in ) ) + while( g_ascii_isspace( *in ) ) in++; e = in + strlen( in ) - 1; - while( e > in && isspace( *e ) ) + while( e > in && g_ascii_isspace( *e ) ) e--; e[1] = 0; -- cgit v1.2.3