Changeset 2568
- Timestamp:
- Jul 31, 2007, 1:21:10 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/http.h
r2040 r2568 59 59 #define TR_HTTP_POST 2 60 60 #define TR_HTTP_M_POST 3 61 tr_http_t * tr_httpClient( int, const char *, int, const char *, ... ) 62 PRINTF( 4, 5 ); 63 tr_http_t * tr_httpClientUrl( int, const char *, ... ) 64 PRINTF( 2, 3 ); 61 tr_http_t * tr_httpClient( int, const char *, int, const char *, ... ); 62 tr_http_t * tr_httpClientUrl( int, const char *, ... ); 65 63 /* only add headers or body before first pulse */ 66 64 void tr_httpAddHeader( tr_http_t *, const char *, const char * ); 67 void tr_httpAddBody( tr_http_t *, const char *, ... ) PRINTF( 2, 3 );65 void tr_httpAddBody( tr_http_t *, const char *, ... ); 68 66 void tr_httpGetHeaders( tr_http_t *, const char **, int * ); 69 67 void tr_httpGetBody( tr_http_t *, const char **, int * ); -
trunk/libtransmission/internal.h
r2557 r2568 53 53 54 54 #ifdef __GNUC__ 55 # define UNUSED __attribute__((unused)) 56 # define PRINTF( fmt, args ) __attribute__((format (printf, fmt, args))) 55 #define UNUSED __attribute__((unused)) 57 56 #else 58 # define UNUSED 59 # define PRINTF( fmt, args ) 57 #define UNUSED 60 58 #endif 61 59 -
trunk/libtransmission/peer.c
r2555 r2568 220 220 221 221 #define peer_dbg( a... ) __peer_dbg( peer, ## a ) 222 static void __peer_dbg( tr_peer_t * peer, char * msg, ... ) PRINTF( 2, 3 );223 222 224 223 static void __peer_dbg( tr_peer_t * peer, char * msg, ... )
Note: See TracChangeset
for help on using the changeset viewer.