From 2a4be1b0cde5cc3e915439a162fc7371bfb04b62 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Sat, 30 Dec 2006 00:27:05 +0000 Subject: [PATCH] Don't use names that can conflict with system functions - Patch by Christian Weisgerber --- libtransmission/choking.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libtransmission/choking.c b/libtransmission/choking.c index 0f0beea21..3af775f94 100644 --- a/libtransmission/choking.c +++ b/libtransmission/choking.c @@ -31,19 +31,19 @@ /* We may try to allocate and free tables of size 0. Quick and dirty way to handle it... */ -void * __malloc( int size ) +void * tr_malloc( size_t size ) { if( !size ) return NULL; return malloc( size ); } -void __free( void * p ) +void tr_free( void * p ) { if( p ) free( p ); } -#define malloc __malloc -#define free __free +#define malloc tr_malloc +#define free tr_free struct tr_choking_s {