aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-05 14:01:04 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-05 14:01:04 +0000
commitb83fc2e7baf2713881c1ff59971e6dbd4609e771 (patch)
treeaaf93e2fa0ef2e30217ccfcc910cfe88a09dca0c /src/hostlist
parent82c1aadb1937327100f9da8f0afe0924dc2aadb4 (diff)
downloadgnunet-b83fc2e7baf2713881c1ff59971e6dbd4609e771.tar.gz
gnunet-b83fc2e7baf2713881c1ff59971e6dbd4609e771.zip
-dead code elimination
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/hostlist-server.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index 49d3a5283..60ea2006a 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -488,7 +488,6 @@ prepare_daemon (struct MHD_Daemon *daemon_handle)
488 fd_set es; 488 fd_set es;
489 struct GNUNET_NETWORK_FDSet *wrs; 489 struct GNUNET_NETWORK_FDSet *wrs;
490 struct GNUNET_NETWORK_FDSet *wws; 490 struct GNUNET_NETWORK_FDSet *wws;
491 struct GNUNET_NETWORK_FDSet *wes;
492 int max; 491 int max;
493 UNSIGNED_MHD_LONG_LONG timeout; 492 UNSIGNED_MHD_LONG_LONG timeout;
494 int haveto; 493 int haveto;
@@ -498,7 +497,6 @@ prepare_daemon (struct MHD_Daemon *daemon_handle)
498 FD_ZERO (&ws); 497 FD_ZERO (&ws);
499 FD_ZERO (&es); 498 FD_ZERO (&es);
500 wrs = GNUNET_NETWORK_fdset_create (); 499 wrs = GNUNET_NETWORK_fdset_create ();
501 wes = GNUNET_NETWORK_fdset_create ();
502 wws = GNUNET_NETWORK_fdset_create (); 500 wws = GNUNET_NETWORK_fdset_create ();
503 max = -1; 501 max = -1;
504 GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, &max)); 502 GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, &max));
@@ -509,14 +507,12 @@ prepare_daemon (struct MHD_Daemon *daemon_handle)
509 tv = GNUNET_TIME_UNIT_FOREVER_REL; 507 tv = GNUNET_TIME_UNIT_FOREVER_REL;
510 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1); 508 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);
511 GNUNET_NETWORK_fdset_copy_native (wws, &ws, max + 1); 509 GNUNET_NETWORK_fdset_copy_native (wws, &ws, max + 1);
512 GNUNET_NETWORK_fdset_copy_native (wes, &es, max + 1);
513 ret = 510 ret =
514 GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_HIGH, 511 GNUNET_SCHEDULER_add_select (GNUNET_SCHEDULER_PRIORITY_HIGH,
515 tv, wrs, wws, 512 tv, wrs, wws,
516 &run_daemon, daemon_handle); 513 &run_daemon, daemon_handle);
517 GNUNET_NETWORK_fdset_destroy (wrs); 514 GNUNET_NETWORK_fdset_destroy (wrs);
518 GNUNET_NETWORK_fdset_destroy (wws); 515 GNUNET_NETWORK_fdset_destroy (wws);
519 GNUNET_NETWORK_fdset_destroy (wes);
520 return ret; 516 return ret;
521} 517}
522 518