From 5df2570fdf0bdc9aeb49112fb7ef0aace042c1e8 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 25 Mar 2009 18:42:39 +0000 Subject: [PATCH] (trunk libT) make tr_localtime_r() a public function --- libtransmission/utils.c | 4 ++-- libtransmission/utils.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 0ff89275f..25b148c01 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -178,8 +178,8 @@ tr_freeMessageList( tr_msg_list * list ) *** **/ -static struct tm * -tr_localtime_r( time_t *_clock, struct tm *_result ) +struct tm * +tr_localtime_r( const time_t *_clock, struct tm *_result ) { #ifdef HAVE_LOCALTIME_R return localtime_r( _clock, _result ); diff --git a/libtransmission/utils.h b/libtransmission/utils.h index 555b20b2e..65fa036c5 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -466,6 +466,9 @@ void* tr_int2ptr( int ); */ char* tr_strratio( char * buf, size_t buflen, double ratio, const char * infinity ); +struct tm * tr_localtime_r( const time_t *_clock, struct tm *_result ); + + #ifdef __cplusplus }