diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-27 21:46:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-27 21:46:41 +0000 |
commit | 46a63dc665f31fa7d42639ab6adabbdb1af239c8 (patch) | |
tree | 6c3e58a7f57d6d3ee44aa6cd2808b5458d75de4b /src/integration-tests | |
parent | 4848a679018f9e864cd277345191ad8f1000b5ff (diff) | |
download | gnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.tar.gz gnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.zip |
renaming GNUNET_TIME_relative_get_forever and GNUNET_TIME_absolute_get_forever methods, adding underscore, to make it clear that the respective #defines should be used instead; replacing use of direct function calls with respective macros where applicable; adding additional GNUNET_TIME_relative_get_xxx-functions to avoid calls to GNUNET_TIME_relative_multiply, which turn out to have gotten performance-relevant
Diffstat (limited to 'src/integration-tests')
-rw-r--r-- | src/integration-tests/connection_watchdog.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/integration-tests/connection_watchdog.c b/src/integration-tests/connection_watchdog.c index 592947694..ac19338cf 100644 --- a/src/integration-tests/connection_watchdog.c +++ b/src/integration-tests/connection_watchdog.c | |||
@@ -461,14 +461,14 @@ int map_ping_it (void *cls, | |||
461 | if ((GNUNET_YES == pc->transport_connected) && (NULL == pc->th_ping)) | 461 | if ((GNUNET_YES == pc->transport_connected) && (NULL == pc->th_ping)) |
462 | pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, &pc->id, | 462 | pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, &pc->id, |
463 | sizeof (struct PING), UINT_MAX, | 463 | sizeof (struct PING), UINT_MAX, |
464 | GNUNET_TIME_relative_get_forever(), &send_transport_ping_cb, pc); | 464 | GNUNET_TIME_UNIT_FOREVER_REL, &send_transport_ping_cb, pc); |
465 | else | 465 | else |
466 | GNUNET_break(0); | 466 | GNUNET_break(0); |
467 | 467 | ||
468 | if ((GNUNET_YES == pc->core_connected) && (NULL == pc->ch_ping)) | 468 | if ((GNUNET_YES == pc->core_connected) && (NULL == pc->ch_ping)) |
469 | pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch, | 469 | pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch, |
470 | GNUNET_NO, UINT_MAX, | 470 | GNUNET_NO, UINT_MAX, |
471 | GNUNET_TIME_relative_get_forever(), | 471 | GNUNET_TIME_UNIT_FOREVER_REL, |
472 | &pc->id, | 472 | &pc->id, |
473 | sizeof (struct PING), | 473 | sizeof (struct PING), |
474 | send_core_ping_cb, pc); | 474 | send_core_ping_cb, pc); |
@@ -580,7 +580,7 @@ map_connect (const struct GNUNET_PeerIdentity *peer, void * source) | |||
580 | if (GNUNET_YES == ping) | 580 | if (GNUNET_YES == ping) |
581 | { | 581 | { |
582 | if (NULL == pc->th_ping) | 582 | if (NULL == pc->th_ping) |
583 | pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, peer, sizeof (struct PING), UINT_MAX, GNUNET_TIME_relative_get_forever(), &send_transport_ping_cb, pc); | 583 | pc->th_ping = GNUNET_TRANSPORT_notify_transmit_ready(th, peer, sizeof (struct PING), UINT_MAX, GNUNET_TIME_UNIT_FOREVER_REL, &send_transport_ping_cb, pc); |
584 | else | 584 | else |
585 | GNUNET_break(0); | 585 | GNUNET_break(0); |
586 | } | 586 | } |
@@ -605,7 +605,7 @@ map_connect (const struct GNUNET_PeerIdentity *peer, void * source) | |||
605 | if (NULL == pc->ch_ping) | 605 | if (NULL == pc->ch_ping) |
606 | pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch, | 606 | pc->ch_ping = GNUNET_CORE_notify_transmit_ready(ch, |
607 | GNUNET_NO, UINT_MAX, | 607 | GNUNET_NO, UINT_MAX, |
608 | GNUNET_TIME_relative_get_forever(), | 608 | GNUNET_TIME_UNIT_FOREVER_REL, |
609 | peer, | 609 | peer, |
610 | sizeof (struct PING), | 610 | sizeof (struct PING), |
611 | send_core_ping_cb, pc); | 611 | send_core_ping_cb, pc); |
@@ -842,7 +842,7 @@ transport_notify_receive_cb (void *cls, | |||
842 | if (NULL == pc->th_pong) | 842 | if (NULL == pc->th_pong) |
843 | pc->th_pong = GNUNET_TRANSPORT_notify_transmit_ready(th, | 843 | pc->th_pong = GNUNET_TRANSPORT_notify_transmit_ready(th, |
844 | peer, sizeof (struct PONG), | 844 | peer, sizeof (struct PONG), |
845 | UINT_MAX, GNUNET_TIME_relative_get_forever(), | 845 | UINT_MAX, GNUNET_TIME_UNIT_FOREVER_REL, |
846 | &send_transport_pong_cb, pc); | 846 | &send_transport_pong_cb, pc); |
847 | else | 847 | else |
848 | GNUNET_break (0); | 848 | GNUNET_break (0); |
@@ -893,7 +893,7 @@ core_notify_receive_cb (void *cls, | |||
893 | if (NULL == pc->ch_pong) | 893 | if (NULL == pc->ch_pong) |
894 | pc->ch_pong = GNUNET_CORE_notify_transmit_ready(ch, | 894 | pc->ch_pong = GNUNET_CORE_notify_transmit_ready(ch, |
895 | GNUNET_NO, UINT_MAX, | 895 | GNUNET_NO, UINT_MAX, |
896 | GNUNET_TIME_relative_get_forever(), | 896 | GNUNET_TIME_UNIT_FOREVER_REL, |
897 | peer, | 897 | peer, |
898 | sizeof (struct PONG), | 898 | sizeof (struct PONG), |
899 | send_core_pong_cb, pc); | 899 | send_core_pong_cb, pc); |