Changeset 8436


Ignore:
Timestamp:
May 19, 2009, 7:39:56 PM (12 years ago)
Author:
charles
Message:

(trunk libT) remove some dead code from tr-dht.c

File:
1 edited

Legend:

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

    r8435 r8436  
    308308    }
    309309
    310     {
    311         char buf[50];
    312         inet_ntop(AF_INET, &address->addr.addr4, buf, 50);
    313     }
    314        
    315310    memset(&sin, 0, sizeof(sin));
    316311    sin.sin_family = AF_INET;
     
    323318
    324319static void
    325 callback(void *ignore, int event,
     320callback(void *ignore UNUSED, int event,
    326321         unsigned char *info_hash, void *data, size_t data_len)
    327322{
    328     (void)ignore;               /* sigh */
    329323    if(event == DHT_EVENT_VALUES) {
    330324        tr_torrent *tor;
     
    365359
    366360static void
    367 event_callback(int s, short type, void *ignore)
     361event_callback(int s, short type, void *ignore UNUSED )
    368362{
    369363    int rc;
    370364    time_t tosleep;
    371     struct timeval now, tv;
    372     (void)ignore;
    373 
    374     gettimeofday(&now, NULL);
     365    struct timeval tv;
    375366
    376367    rc = dht_periodic(s, type == EV_READ, &tosleep, callback, NULL);
Note: See TracChangeset for help on using the changeset viewer.