From a89c7a30d499bac96890929d745fad063eb707b2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 21 Aug 2013 16:03:30 +0000 Subject: removing deprecated argument in 'init' callback of GNUNET_CORE_connect --- src/topology/gnunet-daemon-topology.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/topology/gnunet-daemon-topology.c') diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 6687ee02a..372659bbc 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c @@ -969,18 +969,17 @@ process_peer (void *cls, const struct GNUNET_PeerIdentity *peer, /** - * Function called after GNUNET_CORE_connect has succeeded + * Function called after #GNUNET_CORE_connect has succeeded * (or failed for good). * * @param cls closure - * @param server handle to the server, NULL if we failed * @param my_id ID of this peer, NULL if we failed */ static void -core_init (void *cls, struct GNUNET_CORE_Handle *server, +core_init (void *cls, const struct GNUNET_PeerIdentity *my_id) { - if (server == NULL) + if (NULL == my_id) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _ @@ -988,10 +987,12 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server, GNUNET_SCHEDULER_shutdown (); return; } - handle = server; my_identity = *my_id; - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "I am peer `%s'\n", GNUNET_i2s (my_id)); - peerinfo_notify = GNUNET_PEERINFO_notify (cfg, GNUNET_NO, &process_peer, NULL); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "I am peer `%s'\n", + GNUNET_i2s (my_id)); + peerinfo_notify = GNUNET_PEERINFO_notify (cfg, GNUNET_NO, + &process_peer, NULL); } -- cgit v1.2.3