mirror of
https://github.com/transmission/transmission
synced 2025-03-13 07:33:02 +00:00
Move a macro.
This commit is contained in:
parent
6daf00d25a
commit
8fbb4eab67
3 changed files with 2 additions and 4 deletions
|
@ -67,8 +67,6 @@ struct bufferevent;
|
||||||
#undef NULL
|
#undef NULL
|
||||||
#define NULL ( ( void * )0 )
|
#define NULL ( ( void * )0 )
|
||||||
|
|
||||||
#define TORRENT_ID_VALID( id ) ( 0 < (id) && INT_MAX > (id) )
|
|
||||||
|
|
||||||
#define SAFEFREE( ptr ) \
|
#define SAFEFREE( ptr ) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
|
|
|
@ -48,8 +48,6 @@
|
||||||
#undef NULL
|
#undef NULL
|
||||||
#define NULL ( ( void * )0 )
|
#define NULL ( ( void * )0 )
|
||||||
|
|
||||||
#define TORRENT_ID_VALID( id ) ( 0 < (id) && INT_MAX > (id) )
|
|
||||||
|
|
||||||
#define SAFEFREE( ptr ) \
|
#define SAFEFREE( ptr ) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
|
|
|
@ -125,6 +125,8 @@ struct ipc_info
|
||||||
|
|
||||||
#define HASVERS( info ) ( 0 < (info)->vers )
|
#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 * );
|
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
|
/* any of these functions that can fail may set errno for any of the
|
||||||
|
|
Loading…
Add table
Reference in a new issue