- Timestamp:
- 2015-01-16T19:50:23Z (10 years ago)
- Branches:
- master
- Children:
- 1065dd4, eabe6d4
- Parents:
- 6f10697
- Location:
- lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/http_client.c
r6f10697 r6b13103 345 345 /* Might be a \r\n from the last chunk. */ 346 346 s = chunk; 347 while( isspace( *s ) )347 while( g_ascii_isspace( *s ) ) 348 348 s ++; 349 349 /* Chunk length. Might be incomplete. */ 350 350 if( s < eos && sscanf( s, "%x", &clen ) != 1 ) 351 351 return CR_ERROR; 352 while( isxdigit( *s ) )352 while( g_ascii_isxdigit( *s ) ) 353 353 s ++; 354 354 -
lib/ini.c
r6f10697 r6b13103 63 63 char *e; 64 64 65 while( isspace( *in ) )65 while( g_ascii_isspace( *in ) ) 66 66 in++; 67 67 68 68 e = in + strlen( in ) - 1; 69 while( e > in && isspace( *e ) )69 while( e > in && g_ascii_isspace( *e ) ) 70 70 e--; 71 71 e[1] = 0; -
lib/json.c
r6f10697 r6b13103 53 53 static unsigned char hex_value (json_char c) 54 54 { 55 if ( isdigit(c))55 if (g_ascii_isdigit(c)) 56 56 return c - '0'; 57 57 … … 609 609 default: 610 610 611 if ( isdigit (b) || b == '-')611 if (g_ascii_isdigit (b) || b == '-') 612 612 { 613 613 if (!new_value (&state, &top, &root, &alloc, json_integer)) … … 616 616 if (!state.first_pass) 617 617 { 618 while ( isdigit (b) || b == '+' || b == '-'618 while (g_ascii_isdigit (b) || b == '+' || b == '-' 619 619 || b == 'e' || b == 'E' || b == '.') 620 620 { … … 706 706 case json_double: 707 707 708 if ( isdigit (b))708 if (g_ascii_isdigit (b)) 709 709 { 710 710 ++ num_digits; -
lib/misc.c
r6f10697 r6b13103 163 163 while( *in ) 164 164 { 165 if( *in == '<' && ( isalpha( *(in+1) ) || *(in+1) == '/' ) )165 if( *in == '<' && ( g_ascii_isalpha( *(in+1) ) || *(in+1) == '/' ) ) 166 166 { 167 167 /* If in points at a < and in+1 points at a letter or a slash, this is probably … … 198 198 { 199 199 cs = ++in; 200 while( *in && isalpha( *in ) )200 while( *in && g_ascii_isalpha( *in ) ) 201 201 in ++; 202 202 … … 314 314 for( i = j = 0; t[i]; i ++, j ++ ) 315 315 { 316 /* Warning: isalnum() is locale-aware, so don't use it here! */316 /* Warning: g_ascii_isalnum() is locale-aware, so don't use it here! */ 317 317 if( ( t[i] >= 'A' && t[i] <= 'Z' ) || 318 318 ( t[i] >= 'a' && t[i] <= 'z' ) || … … 490 490 491 491 while( *value ) 492 if( ! isdigit( *value ) )492 if( !g_ascii_isdigit( *value ) ) 493 493 return 0; 494 494 else -
lib/ssl_gnutls.c
r6f10697 r6b13103 318 318 gnutls_set_default_priority( conn->session ); 319 319 gnutls_credentials_set( conn->session, GNUTLS_CRD_CERTIFICATE, xcred ); 320 if( conn->hostname && ! isdigit( conn->hostname[0] ) )320 if( conn->hostname && !g_ascii_isdigit( conn->hostname[0] ) ) 321 321 gnutls_server_name_set( conn->session, GNUTLS_NAME_DNS, 322 322 conn->hostname, strlen( conn->hostname ) ); -
lib/ssl_openssl.c
r6f10697 r6b13103 159 159 SSL_set_fd( conn->ssl, conn->fd ); 160 160 161 if( conn->hostname && ! isdigit( conn->hostname[0] ) )161 if( conn->hostname && !g_ascii_isdigit( conn->hostname[0] ) ) 162 162 SSL_set_tlsext_host_name( conn->ssl, conn->hostname ); 163 163
Note: See TracChangeset
for help on using the changeset viewer.