From 11752dae78caf32bf7ff7603974b8487c04eee78 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 31 Jul 2007 01:21:10 +0000 Subject: [PATCH] remove unused macros --- libtransmission/http.h | 8 +++----- libtransmission/internal.h | 6 ++---- libtransmission/peer.c | 1 - 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/libtransmission/http.h b/libtransmission/http.h index 43370e59a..23ecd4102 100644 --- a/libtransmission/http.h +++ b/libtransmission/http.h @@ -58,13 +58,11 @@ typedef struct tr_http_s tr_http_t; #define TR_HTTP_GET 1 #define TR_HTTP_POST 2 #define TR_HTTP_M_POST 3 -tr_http_t * tr_httpClient( int, const char *, int, const char *, ... ) - PRINTF( 4, 5 ); -tr_http_t * tr_httpClientUrl( int, const char *, ... ) - PRINTF( 2, 3 ); +tr_http_t * tr_httpClient( int, const char *, int, const char *, ... ); +tr_http_t * tr_httpClientUrl( int, const char *, ... ); /* only add headers or body before first pulse */ void tr_httpAddHeader( tr_http_t *, const char *, const char * ); -void tr_httpAddBody( tr_http_t *, const char *, ... ) PRINTF( 2, 3 ); +void tr_httpAddBody( tr_http_t *, const char *, ... ); void tr_httpGetHeaders( tr_http_t *, const char **, int * ); void tr_httpGetBody( tr_http_t *, const char **, int * ); tr_tristate_t tr_httpPulse( tr_http_t *, const char **, int * ); diff --git a/libtransmission/internal.h b/libtransmission/internal.h index 007f3ef45..01693f267 100644 --- a/libtransmission/internal.h +++ b/libtransmission/internal.h @@ -52,11 +52,9 @@ typedef in_port_t tr_port_t; #endif #ifdef __GNUC__ -# define UNUSED __attribute__((unused)) -# define PRINTF( fmt, args ) __attribute__((format (printf, fmt, args))) +#define UNUSED __attribute__((unused)) #else -# define UNUSED -# define PRINTF( fmt, args ) +#define UNUSED #endif #define TR_MAX_PEER_COUNT 60 diff --git a/libtransmission/peer.c b/libtransmission/peer.c index ee721da19..b6e601f10 100644 --- a/libtransmission/peer.c +++ b/libtransmission/peer.c @@ -219,7 +219,6 @@ struct tr_peer_s }; #define peer_dbg( a... ) __peer_dbg( peer, ## a ) -static void __peer_dbg( tr_peer_t * peer, char * msg, ... ) PRINTF( 2, 3 ); static void __peer_dbg( tr_peer_t * peer, char * msg, ... ) {