From 8fbb4eab678f1c05ff51823a2cdfaf6234153cc1 Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Thu, 24 May 2007 07:11:59 +0000 Subject: [PATCH] Move a macro. --- daemon/misc.h | 2 -- libtransmission/ipcparse.c | 2 -- libtransmission/ipcparse.h | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) 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