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/core/test_core_api_start_only.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/core/test_core_api_start_only.c')
-rw-r--r-- | src/core/test_core_api_start_only.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c index e98b374d2..ca16eb856 100644 --- a/src/core/test_core_api_start_only.c +++ b/src/core/test_core_api_start_only.c | |||
@@ -104,14 +104,12 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
104 | 104 | ||
105 | 105 | ||
106 | static void | 106 | static void |
107 | init_notify (void *cls, struct GNUNET_CORE_Handle *server, | 107 | init_notify (void *cls, |
108 | const struct GNUNET_PeerIdentity *my_identity) | 108 | const struct GNUNET_PeerIdentity *my_identity) |
109 | { | 109 | { |
110 | struct PeerContext *p = cls; | 110 | struct PeerContext *p = cls; |
111 | 111 | ||
112 | GNUNET_assert (server != NULL); | 112 | if (p == &p1) |
113 | GNUNET_assert (p->ch == server); | ||
114 | if (cls == &p1) | ||
115 | { | 113 | { |
116 | /* connect p2 */ | 114 | /* connect p2 */ |
117 | p2.ch = | 115 | p2.ch = |
@@ -121,7 +119,7 @@ init_notify (void *cls, struct GNUNET_CORE_Handle *server, | |||
121 | } | 119 | } |
122 | else | 120 | else |
123 | { | 121 | { |
124 | GNUNET_assert (cls == &p2); | 122 | GNUNET_assert (p == &p2); |
125 | GNUNET_SCHEDULER_cancel (timeout_task_id); | 123 | GNUNET_SCHEDULER_cancel (timeout_task_id); |
126 | GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); | 124 | GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); |
127 | } | 125 | } |