aboutsummaryrefslogtreecommitdiffstats
path: root/dcc.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 /dcc.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 'dcc.c')
-rw-r--r--dcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dcc.c b/dcc.c
index d6e1a58b..831567fe 100644
--- a/dcc.c
+++ b/dcc.c
@@ -522,7 +522,7 @@ file_transfer_t *dcc_request( struct im_connection *ic, char* const* ctcp )
filename = ctcp[2];
host = ctcp[3];
- while( *host && isdigit( *host ) ) host++; /* Just digits? */
+ while( *host && g_ascii_isdigit( *host ) ) host++; /* Just digits? */
if( *host == '\0' )
{
struct in_addr ipaddr = { .s_addr = htonl( atoll( ctcp[3] ) ) };