Changeset 1300


Ignore:
Timestamp:
Dec 30, 2006, 12:27:05 AM (15 years ago)
Author:
titer
Message:

Don't use names that can conflict with system functions - Patch by Christian Weisgerber

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/choking.c

    r261 r1300  
    3232/* We may try to allocate and free tables of size 0. Quick and dirty
    3333   way to handle it... */
    34 void * __malloc( int size )
     34void * tr_malloc( size_t size )
    3535{
    3636    if( !size )
     
    3838    return malloc( size );
    3939}
    40 void __free( void * p )
     40void tr_free( void * p )
    4141{
    4242    if( p )
    4343        free( p );
    4444}
    45 #define malloc __malloc
    46 #define free   __free
     45#define malloc tr_malloc
     46#define free   tr_free
    4747
    4848struct tr_choking_s
Note: See TracChangeset for help on using the changeset viewer.