Changeset 6b13103 for protocols/purple


Ignore:
Timestamp:
2015-01-16T19:50:23Z (10 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/purple/purple.c

    r6f10697 r6b13103  
    6161                while( *a == '_' ) a ++;
    6262                while( *b == '_' ) b ++;
    63                 if( tolower( *a ) != tolower( *b ) )
     63                if( g_ascii_tolower( *a ) != g_ascii_tolower( *b ) )
    6464                        return FALSE;
    6565               
     
    11481148                                {
    11491149                                        n = strlen( value ) - 1;
    1150                                         while( isspace( value[n] ) )
     1150                                        while( g_ascii_isspace( value[n] ) )
    11511151                                                n --;
    11521152                                        g_string_append_len( info, value, n + 1 );
Note: See TracChangeset for help on using the changeset viewer.