aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/account.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/account.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/account.c')
-rw-r--r--protocols/account.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/account.c b/protocols/account.c
index 3f6fe3a6..188e362e 100644
--- a/protocols/account.c
+++ b/protocols/account.c
@@ -80,7 +80,7 @@ account_t *account_add( bee_t *bee, struct prpl *prpl, char *user, char *pass )
strcpy( tag, prpl->name );
if( strcmp( prpl->name, "oscar" ) == 0 )
{
- if( isdigit( a->user[0] ) )
+ if( g_ascii_isdigit( a->user[0] ) )
strcpy( tag, "icq" );
else
strcpy( tag, "aim" );
@@ -416,7 +416,7 @@ int account_reconnect_delay_parse( char *value, struct account_reconnect_delay *
p->max = 86400;
/* Format: /[0-9]+([*+][0-9]+(<[0-9+])?)?/ */
- while( *value && isdigit( *value ) )
+ while( *value && g_ascii_isdigit( *value ) )
p->start = p->start * 10 + *value++ - '0';
/* Sure, call me evil for implementing my own fscanf here, but it's
@@ -432,7 +432,7 @@ int account_reconnect_delay_parse( char *value, struct account_reconnect_delay *
p->op = *value++;
/* + or * the delay by this number every time. */
- while( *value && isdigit( *value ) )
+ while( *value && g_ascii_isdigit( *value ) )
p->step = p->step * 10 + *value++ - '0';
if( *value == 0 )
@@ -443,7 +443,7 @@ int account_reconnect_delay_parse( char *value, struct account_reconnect_delay *
p->max = 0;
value ++;
- while( *value && isdigit( *value ) )
+ while( *value && g_ascii_isdigit( *value ) )
p->max = p->max * 10 + *value++ - '0';
return p->max > 0;