Changeset 12210


Ignore:
Timestamp:
Mar 22, 2011, 11:46:31 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) tr_strtruncd() is only used in one place, so make it a private function there instead of leaving it public in utils.h

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r12209 r12210  
    14301430}
    14311431
    1432 char*
     1432/* return a truncated double as a string */
     1433static char*
    14331434tr_strtruncd( char * buf, double x, int precision, size_t buflen )
    14341435{
  • trunk/libtransmission/utils.h

    r12209 r12210  
    474474char* tr_strratio( char * buf, size_t buflen, double ratio, const char * infinity ) TR_GNUC_NONNULL(1,4);
    475475
    476 /* return a truncated double as a string */
    477 char* tr_strtruncd( char * buf, double x, int precision, size_t buflen );
    478 
    479476/** @brief Portability wrapper for localtime_r() that uses the system implementation if available */
    480477struct tm * tr_localtime_r( const time_t *_clock, struct tm *_result );
Note: See TracChangeset for help on using the changeset viewer.