Ignore:
Timestamp:
Mar 13, 2011, 8:21:55 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) use libevent's portability wrapper for strcasecmp()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r12142 r12148  
    5656#define TR_N_ELEMENTS( ary ) ( sizeof( ary ) / sizeof( *ary ) )
    5757
    58 #ifdef WIN32
    59 #define strncasecmp _strnicmp
    60 #endif
    61 
    6258struct tr_rpc_server
    6359{
     
    600596
    601597        auth = evhttp_find_header( req->input_headers, "Authorization" );
    602         if( auth && !strncasecmp( auth, "basic ", 6 ) )
     598        if( auth && !evutil_ascii_strncasecmp( auth, "basic ", 6 ) )
    603599        {
    604600            int    plen;
Note: See TracChangeset for help on using the changeset viewer.