diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-21 16:03:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-21 16:03:30 +0000 |
commit | a89c7a30d499bac96890929d745fad063eb707b2 (patch) | |
tree | cb001facf8da3cfc9e9bfaa854fb99b9b51ec636 /src/topology/gnunet-daemon-topology.c | |
parent | d70d18816c37c30e02977a2cc2bdb2368e95a4de (diff) |
removing deprecated argument in 'init' callback of GNUNET_CORE_connect
Diffstat (limited to 'src/topology/gnunet-daemon-topology.c')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 6687ee02a9..372659bbc8 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); } |