Ignore:
Timestamp:
Jan 19, 2009, 2:05:43 PM (13 years ago)
Author:
charles
Message:

(trunk libT) prefer int' over ssize_t'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r7743 r7748  
    638638
    639639char*
    640 tr_strndup( const void * in, ssize_t len )
     640tr_strndup( const void * in, int len )
    641641{
    642642    char * out = NULL;
     
    13261326
    13271327char*
    1328 tr_utf8clean( const char * str, ssize_t max_len, tr_bool * err )
     1328tr_utf8clean( const char * str, int max_len, tr_bool * err )
    13291329{
    13301330    const char zero = '\0';
     
    13371337
    13381338    if( max_len < 0 )
    1339         max_len = (ssize_t) strlen( str );
     1339        max_len = (int) strlen( str );
    13401340
    13411341    while( !tr_utf8_validate ( str, max_len, &end ) )
    13421342    {
    1343         const ssize_t good_len = end - str;
     1343        const int good_len = end - str;
    13441344
    13451345        evbuffer_add( buf, str, good_len );
Note: See TracChangeset for help on using the changeset viewer.