Ignore:
Timestamp:
2015-01-16T19:50:23Z (9 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
  • protocols/jabber/jabber_util.c

    r6f10697 r6b13103  
    321321                        return FALSE;
    322322                }
    323                 if( tolower( jid1[i] ) != tolower( jid2[i] ) )
     323                if( g_ascii_tolower( jid1[i] ) != g_ascii_tolower( jid2[i] ) )
    324324                {
    325325                        return FALSE;
     
    342342           it's Unicode but feck Unicode. :-P So stop once we see a slash. */
    343343        for( i = 0; i < len && orig[i] != '/' ; i ++ )
    344                 new[i] = tolower( orig[i] );
     344                new[i] = g_ascii_tolower( orig[i] );
    345345        for( ; orig[i]; i ++ )
    346346                new[i] = orig[i];
Note: See TracChangeset for help on using the changeset viewer.