Ignore:
Timestamp:
Nov 14, 2009, 2:43:31 PM (13 years ago)
Author:
charles
Message:

(trunk) #2222: revert r8967, as foreshadowed in http://trac.transmissionbt.com/ticket/2222#comment:20

File:
1 edited

Legend:

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

    r9476 r9522  
    5050#include "utils.h"
    5151#include "version.h"
    52 
    53 #ifdef WITHOUT_DHT
    54 
    55   /**
    56   *** These are the stubs for when we're building without DHT support
    57   **/
    58 
    59   int tr_dhtInit( tr_session * session UNUSED,
    60                   tr_address * address UNUSED ) { return TR_DHT_STOPPED; }
    61 
    62   void tr_dhtUninit( tr_session * session UNUSED ) { }
    63 
    64   tr_bool tr_dhtEnabled( const tr_session * session UNUSED ) { return FALSE; }
    65 
    66   tr_port tr_dhtPort ( const tr_session * sesssion UNUSED ) { return 0; }
    67 
    68   int tr_dhtStatus( tr_session * session     UNUSED,
    69                     int        * setmeCount  UNUSED ) { return TR_DHT_STOPPED; }
    70 
    71   int tr_dhtAddNode( tr_session       * session    UNUSED,
    72                      const tr_address * addr       UNUSED,
    73                      tr_port            port       UNUSED,
    74                      tr_bool            bootstrap  UNUSED ) { return 0; }
    75 
    76   int tr_dhtAnnounce( tr_torrent * session UNUSED,
    77                       tr_bool announce UNUSED ) { return -1; }
    78 
    79 
    80 #else
    8152
    8253static int dht_socket;
     
    471442    return size;
    472443}
    473 
    474 #endif
Note: See TracChangeset for help on using the changeset viewer.