diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-01 16:11:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-01 16:11:16 +0000 |
commit | 385767a3fee932531de200def49ccec77b478157 (patch) | |
tree | 7c56eda1a72d5f7df305373576083817b44baad5 /src/util/network.c | |
parent | c2f2b738aa5bfe3e62fbe5281588d79fceab06f4 (diff) | |
download | gnunet-385767a3fee932531de200def49ccec77b478157.tar.gz gnunet-385767a3fee932531de200def49ccec77b478157.zip |
-removing legacy #ifdefs
Diffstat (limited to 'src/util/network.c')
-rw-r--r-- | src/util/network.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/util/network.c b/src/util/network.c index 9371ae6f6..217cebc77 100644 --- a/src/util/network.c +++ b/src/util/network.c | |||
@@ -1398,21 +1398,14 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds, | |||
1398 | } | 1398 | } |
1399 | 1399 | ||
1400 | handle_array[nhandles] = NULL; | 1400 | handle_array[nhandles] = NULL; |
1401 | 1401 | LOG (GNUNET_ERROR_TYPE_DEBUG, | |
1402 | #if DEBUG_NETWORK | 1402 | "Number nfds: %d, handles: %d, return code: %u will wait: %d ms\n", |
1403 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Number nfds : %d\n", nfds); | 1403 | nfds, nhandles, newretcode, ms_total); |
1404 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Number of handles : %d\n", nhandles); | ||
1405 | LOG (GNUNET_ERROR_TYPE_DEBUG, "retcode : %d\n", newretcode); | ||
1406 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Will wait : %d\n", ms_total); | ||
1407 | #endif | ||
1408 | |||
1409 | if (nhandles) | 1404 | if (nhandles) |
1410 | returncode = | 1405 | returncode = |
1411 | WaitForMultipleObjects (nhandles, handle_array, FALSE, ms_total); | 1406 | WaitForMultipleObjects (nhandles, handle_array, FALSE, ms_total); |
1412 | #if DEBUG_NETWORK | ||
1413 | LOG (GNUNET_ERROR_TYPE_DEBUG, "WaitForMultipleObjects Returned : %d\n", | 1407 | LOG (GNUNET_ERROR_TYPE_DEBUG, "WaitForMultipleObjects Returned : %d\n", |
1414 | returncode); | 1408 | returncode); |
1415 | #endif | ||
1416 | 1409 | ||
1417 | returnedpos = returncode - WAIT_OBJECT_0; | 1410 | returnedpos = returncode - WAIT_OBJECT_0; |
1418 | LOG (GNUNET_ERROR_TYPE_DEBUG, "return pos is : %d\n", returnedpos); | 1411 | LOG (GNUNET_ERROR_TYPE_DEBUG, "return pos is : %d\n", returnedpos); |