aboutsummaryrefslogtreecommitdiffstats
path: root/lib/http_client.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 /lib/http_client.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 'lib/http_client.c')
-rw-r--r--lib/http_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_client.c b/lib/http_client.c
index 49498f74..2481997a 100644
--- a/lib/http_client.c
+++ b/lib/http_client.c
@@ -344,12 +344,12 @@ static http_ret_t http_process_chunked_data( struct http_request *req, const cha
/* Might be a \r\n from the last chunk. */
s = chunk;
- while( isspace( *s ) )
+ while( g_ascii_isspace( *s ) )
s ++;
/* Chunk length. Might be incomplete. */
if( s < eos && sscanf( s, "%x", &clen ) != 1 )
return CR_ERROR;
- while( isxdigit( *s ) )
+ while( g_ascii_isxdigit( *s ) )
s ++;
/* If we read anything here, it *must* be \r\n. */