Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
From Charles.
  • Loading branch information
Juliusz Chroboczek committed Nov 2, 2010
1 parent a86a5f2 commit 05db646
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions dht.c
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ dht_periodic(const void *buf, size_t buflen,
unsigned short port;
unsigned char values[2048], values6[2048];
int values_len = 2048, values6_len = 2048;
int want, want4, want6;
int want;
unsigned short ttid;

if(is_martian(from))
Expand Down Expand Up @@ -1897,14 +1897,6 @@ dht_periodic(const void *buf, size_t buflen,
}
}

if(want > 0) {
want4 = (want & WANT4);
want6 = (want & WANT6);
} else {
want4 = from->sa_family == AF_INET;
want6 = from->sa_family == AF_INET6;
}

switch(message) {
case REPLY:
if(tid_len != 4) {
Expand Down

0 comments on commit 05db646

Please sign in to comment.