X-Git-Url: http://www.git.stargrave.org/?p=dht-bootstrap.git;a=blobdiff_plain;f=dht-bootstrap.c;h=e98cd6ea6bd5f2e4c9be46d714e6bf54bf56d851;hp=33ef79808d12d75080a1562bac7a344493f83caa;hb=1462580556aa27a98819e58f74264cd00d8cd5d6;hpb=b1e56d6f9899302434adc97e68b5a644d5ad750c diff --git a/dht-bootstrap.c b/dht-bootstrap.c index 33ef798..e98cd6e 100644 --- a/dht-bootstrap.c +++ b/dht-bootstrap.c @@ -506,18 +506,10 @@ main(int argc, char **argv) token_bucket_tokens = MAX_TOKEN_BUCKET_TOKENS; int send4 = 0; struct pollfd fds[2]; - if (dht_socket >= 0) { - fds[0].fd = dht_socket; - fds[0].events = POLLIN; - } else { - fds[0].fd = -1; - } - if (dht_socket6 >= 0) { - fds[1].fd = dht_socket6; - fds[1].events = POLLIN; - } else { - fds[1].fd = -1; - } + fds[0].fd = dht_socket; + fds[0].events = POLLIN; + fds[1].fd = dht_socket6; + fds[1].events = POLLIN; while (1) { int tv_sec = 0;