Changeset 12176


Ignore:
Timestamp:
Mar 16, 2011, 5:42:32 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) move the single-use utility function "evbuffer_ref_cleanup_tr_free()" from a public header into a private function to limit its visibility/scope

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r12148 r12176  
    412412    strftime( buf, sizeof( buf ), "%a, %d %b %Y %H:%M:%S GMT", &tm );
    413413    evhttp_add_header( headers, key, buf );
     414}
     415
     416static void
     417evbuffer_ref_cleanup_tr_free( const void * data UNUSED, size_t datalen UNUSED, void * extra )
     418{
     419    tr_free( extra );
    414420}
    415421
  • trunk/libtransmission/utils.h

    r12141 r12176  
    308308/** @brief Portability wrapper around free() in which `NULL' is a safe argument */
    309309void tr_free( void * p );
    310 
    311 static inline
    312 void evbuffer_ref_cleanup_tr_free( const void * data UNUSED, size_t datalen UNUSED, void * extra )
    313 {
    314     tr_free( extra );
    315 }
    316310
    317311/**
Note: See TracChangeset for help on using the changeset viewer.