Changeset 6b13103 for lib/ssl_openssl.c


Ignore:
Timestamp:
2015-01-16T19:50:23Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
1065dd4, eabe6d4
Parents:
6f10697
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_openssl.c

    r6f10697 r6b13103  
    159159        SSL_set_fd( conn->ssl, conn->fd );
    160160       
    161         if( conn->hostname && !isdigit( conn->hostname[0] ) )
     161        if( conn->hostname && !g_ascii_isdigit( conn->hostname[0] ) )
    162162                SSL_set_tlsext_host_name( conn->ssl, conn->hostname );
    163163       
Note: See TracChangeset for help on using the changeset viewer.