Changeset 7743


Ignore:
Timestamp:
Jan 18, 2009, 3:15:41 PM (12 years ago)
Author:
charles
Message:

(trunk libT) have tr_strndup() take an ssize_t instead of an int

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r7656 r7743  
    638638
    639639char*
    640 tr_strndup( const void * in,
    641             int          len )
     640tr_strndup( const void * in, ssize_t len )
    642641{
    643642    char * out = NULL;
  • trunk/libtransmission/utils.h

    r7663 r7743  
    303303
    304304/** @param in is a void* so that callers can pass in both signed & unsigned without a cast */
    305 char* tr_strndup( const void * in, int len ) TR_GNUC_MALLOC;
     305char* tr_strndup( const void * in, ssize_t len ) TR_GNUC_MALLOC;
    306306
    307307/** @param in is a void* so that callers can pass in both signed & unsigned without a cast */
Note: See TracChangeset for help on using the changeset viewer.