]> granicus.if.org Git - transmission/commitdiff
(trunk libT) make tr_localtime_r() a public function
authorCharles Kerr <charles@transmissionbt.com>
Wed, 25 Mar 2009 18:42:39 +0000 (18:42 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 25 Mar 2009 18:42:39 +0000 (18:42 +0000)
libtransmission/utils.c
libtransmission/utils.h

index 0ff89275fa92921d9e30513c7ec7c24a6be2d5f4..25b148c01031e4101c09a535a30bc97b6055b33c 100644 (file)
@@ -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 );
index 555b20b2e6d366b68b601e3df4541d5b772f83a2..65fa036c56e55c9de24ebb6708a01f3d2e7b2209 100644 (file)
@@ -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
 }