aboutsummaryrefslogtreecommitdiff
path: root/src/topology/gnunet-daemon-topology.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-22 00:46:03 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-22 00:46:03 +0100
commit7e9e4e320d6eee5bf6afd876b282609712cb72db (patch)
treeeda9315b99a026c9033d2db0ed7993d4e524700d /src/topology/gnunet-daemon-topology.c
parent542bf871c6eebdc645884960559e15ce400939e6 (diff)
downloadgnunet-7e9e4e320d6eee5bf6afd876b282609712cb72db.tar.gz
gnunet-7e9e4e320d6eee5bf6afd876b282609712cb72db.zip
use new SCHEDULER_add_at API where applicable
Diffstat (limited to 'src/topology/gnunet-daemon-topology.c')
-rw-r--r--src/topology/gnunet-daemon-topology.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index d48f07e71..067ebce23 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -534,10 +534,10 @@ schedule_next_hello (void *cls)
534 1, 534 1,
535 GNUNET_NO); 535 GNUNET_NO);
536 /* prepare to send the next one */ 536 /* prepare to send the next one */
537 if (NULL != pl->hello_delay_task)
538 GNUNET_SCHEDULER_cancel (pl->hello_delay_task);
539 pl->next_hello_allowed 537 pl->next_hello_allowed
540 = GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_FREQUENCY); 538 = GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_FREQUENCY);
539 if (NULL != pl->hello_delay_task)
540 GNUNET_SCHEDULER_cancel (pl->hello_delay_task);
541 pl->hello_delay_task 541 pl->hello_delay_task
542 = GNUNET_SCHEDULER_add_now (&schedule_next_hello, 542 = GNUNET_SCHEDULER_add_now (&schedule_next_hello,
543 pl); 543 pl);
@@ -1022,7 +1022,7 @@ check_hello (void *cls,
1022 const struct GNUNET_HELLO_Message *message) 1022 const struct GNUNET_HELLO_Message *message)
1023{ 1023{
1024 struct GNUNET_PeerIdentity pid; 1024 struct GNUNET_PeerIdentity pid;
1025 1025
1026 if (GNUNET_OK != 1026 if (GNUNET_OK !=
1027 GNUNET_HELLO_get_id (message, 1027 GNUNET_HELLO_get_id (message,
1028 &pid)) 1028 &pid))