Ignore:
Timestamp:
Feb 18, 2011, 1:06:42 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) add a stub for UTP_Close() s.t. peer-mgr.c doesn't need the #ifdefs from r11960

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-utp.c

    r11960 r11961  
    2222*/
    2323
     24#include <assert.h>
    2425#include <unistd.h>
    2526
     
    3435#include "peer-mgr.h"
    3536#include "tr-utp.h"
     37#include "utils.h"
     38
     39#define MY_NAME "UTP"
     40
     41#define dbgmsg( ... ) \
     42    do { \
     43        if( tr_deepLoggingIsActive( ) ) \
     44            tr_deepLog( __FILE__, __LINE__, MY_NAME, __VA_ARGS__ ); \
     45    } while( 0 )
    3646
    3747#ifndef WITH_UTP
     48
     49void
     50UTP_Close(struct UTPSocket * socket )
     51{
     52    tr_nerr( MY_NAME, "UTP_Close(%p) was called.", socket );
     53    dbgmsg( "UTP_Close(%p) was called.", socket );
     54    assert( 0 ); /* FIXME: this is too much for the long term, but probably needed in the short term */
     55}
    3856
    3957int tr_utpPacket(const unsigned char *buf UNUSED, size_t buflen UNUSED,
Note: See TracChangeset for help on using the changeset viewer.