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) | |
download | gnunet-a89c7a30d499bac96890929d745fad063eb707b2.tar.gz gnunet-a89c7a30d499bac96890929d745fad063eb707b2.zip |
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 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, | |||
969 | 969 | ||
970 | 970 | ||
971 | /** | 971 | /** |
972 | * Function called after GNUNET_CORE_connect has succeeded | 972 | * Function called after #GNUNET_CORE_connect has succeeded |
973 | * (or failed for good). | 973 | * (or failed for good). |
974 | * | 974 | * |
975 | * @param cls closure | 975 | * @param cls closure |
976 | * @param server handle to the server, NULL if we failed | ||
977 | * @param my_id ID of this peer, NULL if we failed | 976 | * @param my_id ID of this peer, NULL if we failed |
978 | */ | 977 | */ |
979 | static void | 978 | static void |
980 | core_init (void *cls, struct GNUNET_CORE_Handle *server, | 979 | core_init (void *cls, |
981 | const struct GNUNET_PeerIdentity *my_id) | 980 | const struct GNUNET_PeerIdentity *my_id) |
982 | { | 981 | { |
983 | if (server == NULL) | 982 | if (NULL == my_id) |
984 | { | 983 | { |
985 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 984 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
986 | _ | 985 | _ |
@@ -988,10 +987,12 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server, | |||
988 | GNUNET_SCHEDULER_shutdown (); | 987 | GNUNET_SCHEDULER_shutdown (); |
989 | return; | 988 | return; |
990 | } | 989 | } |
991 | handle = server; | ||
992 | my_identity = *my_id; | 990 | my_identity = *my_id; |
993 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "I am peer `%s'\n", GNUNET_i2s (my_id)); | 991 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
994 | peerinfo_notify = GNUNET_PEERINFO_notify (cfg, GNUNET_NO, &process_peer, NULL); | 992 | "I am peer `%s'\n", |
993 | GNUNET_i2s (my_id)); | ||
994 | peerinfo_notify = GNUNET_PEERINFO_notify (cfg, GNUNET_NO, | ||
995 | &process_peer, NULL); | ||
995 | } | 996 | } |
996 | 997 | ||
997 | 998 | ||