aboutsummaryrefslogtreecommitdiffstats
path: root/irc_util.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-01-16 16:50:23 -0300
committerdequis <dx@dxzone.com.ar>2015-01-16 16:50:23 -0300
commit6b13103dad92d505e038c268af66aeb04b7b4d87 (patch)
tree42ea01f5040065df60917daca6605318ec4f28df /irc_util.c
parent6f10697380c620065731a5beece95c0f5bd652a0 (diff)
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
Diffstat (limited to 'irc_util.c')
-rw-r--r--irc_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/irc_util.c b/irc_util.c
index 49deb315..f4581a08 100644
--- a/irc_util.c
+++ b/irc_util.c
@@ -41,9 +41,9 @@ char *set_eval_timezone( set_t *set, char *value )
s ++;
/* \d+ */
- if( !isdigit( *s ) )
+ if( !g_ascii_isdigit( *s ) )
return SET_INVALID;
- while( *s && isdigit( *s ) ) s ++;
+ while( *s && g_ascii_isdigit( *s ) ) s ++;
/* EOS? */
if( *s == '\0' )
@@ -55,9 +55,9 @@ char *set_eval_timezone( set_t *set, char *value )
s ++;
/* \d+ */
- if( !isdigit( *s ) )
+ if( !g_ascii_isdigit( *s ) )
return SET_INVALID;
- while( *s && isdigit( *s ) ) s ++;
+ while( *s && g_ascii_isdigit( *s ) ) s ++;
/* EOS */
return *s == '\0' ? value : SET_INVALID;