Changeset 6b13103 for protocols/msn/ns.c


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

    r6f10697 r6b13103  
    581581                ic->flags |= OPT_PONGED;
    582582        }
    583         else if( isdigit( cmd[0][0] ) )
     583        else if( g_ascii_isdigit( cmd[0][0] ) )
    584584        {
    585585                int num = atoi( cmd[0] );
     
    997997        /* This might be a federated contact. Get its network number,
    998998           prefixed to bu->handle with a colon. Default is 1. */
    999         for( handle = bu->handle; isdigit( *handle ); handle ++ )
     999        for( handle = bu->handle; g_ascii_isdigit( *handle ); handle ++ )
    10001000                type = type * 10 + *handle - '0';
    10011001        if( *handle == ':' )
Note: See TracChangeset for help on using the changeset viewer.