diff --git a/daemon/misc.h b/daemon/misc.h index ea2de6b9b..977e424b1 100644 --- a/daemon/misc.h +++ b/daemon/misc.h @@ -67,8 +67,6 @@ struct bufferevent; #undef NULL #define NULL ( ( void * )0 ) -#define TORRENT_ID_VALID( id ) ( 0 < (id) && INT_MAX > (id) ) - #define SAFEFREE( ptr ) \ do \ { \ diff --git a/libtransmission/ipcparse.c b/libtransmission/ipcparse.c index 50af77eb7..fc197f2b5 100644 --- a/libtransmission/ipcparse.c +++ b/libtransmission/ipcparse.c @@ -48,8 +48,6 @@ #undef NULL #define NULL ( ( void * )0 ) -#define TORRENT_ID_VALID( id ) ( 0 < (id) && INT_MAX > (id) ) - #define SAFEFREE( ptr ) \ do \ { \ diff --git a/libtransmission/ipcparse.h b/libtransmission/ipcparse.h index 40ea969d5..89b0120aa 100644 --- a/libtransmission/ipcparse.h +++ b/libtransmission/ipcparse.h @@ -125,6 +125,8 @@ struct ipc_info #define HASVERS( info ) ( 0 < (info)->vers ) +#define TORRENT_ID_VALID( id ) ( 0 < (id) && INT_MAX > (id) ) + typedef void ( *trd_msgfunc )( enum ipc_msg, benc_val_t *, int64_t, void * ); /* any of these functions that can fail may set errno for any of the