aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/sb.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 /protocols/msn/sb.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 'protocols/msn/sb.c')
-rw-r--r--protocols/msn/sb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c
index ac7182fb..40e4e00d 100644
--- a/protocols/msn/sb.c
+++ b/protocols/msn/sb.c
@@ -505,7 +505,7 @@ static int msn_sb_command( struct msn_handler_data *handler, char **cmd, int num
}
else if( strcmp( cmd[0], "CAL" ) == 0 )
{
- if( num_parts < 4 || !isdigit( cmd[3][0] ) )
+ if( num_parts < 4 || !g_ascii_isdigit( cmd[3][0] ) )
{
msn_sb_destroy( sb );
return( 0 );
@@ -644,7 +644,7 @@ static int msn_sb_command( struct msn_handler_data *handler, char **cmd, int num
/* PANIC! */
}
}
- else if( isdigit( cmd[0][0] ) )
+ else if( g_ascii_isdigit( cmd[0][0] ) )
{
int num = atoi( cmd[0] );
const struct msn_status_code *err = msn_status_by_number( num );