aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_start_only.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/test_core_api_start_only.c')
-rw-r--r--src/core/test_core_api_start_only.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index f27866c19..b06b97899 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -68,7 +68,7 @@ static int ok;
68static void 68static void
69connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 69connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
70 const struct GNUNET_ATS_Information *atsi, 70 const struct GNUNET_ATS_Information *atsi,
71 unsigned int atsi_count) 71 unsigned int atsi_count)
72{ 72{
73} 73}
74 74
@@ -83,7 +83,7 @@ static int
83inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 83inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
84 const struct GNUNET_MessageHeader *message, 84 const struct GNUNET_MessageHeader *message,
85 const struct GNUNET_ATS_Information *atsi, 85 const struct GNUNET_ATS_Information *atsi,
86 unsigned int atsi_count) 86 unsigned int atsi_count)
87{ 87{
88 return GNUNET_OK; 88 return GNUNET_OK;
89} 89}
@@ -93,7 +93,7 @@ static int
93outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 93outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
94 const struct GNUNET_MessageHeader *message, 94 const struct GNUNET_MessageHeader *message,
95 const struct GNUNET_ATS_Information *atsi, 95 const struct GNUNET_ATS_Information *atsi,
96 unsigned int atsi_count) 96 unsigned int atsi_count)
97{ 97{
98 return GNUNET_OK; 98 return GNUNET_OK;
99} 99}
@@ -130,9 +130,8 @@ init_notify (void *cls, struct GNUNET_CORE_Handle *server,
130 /* connect p2 */ 130 /* connect p2 */
131 p2.ch = 131 p2.ch =
132 GNUNET_CORE_connect (p2.cfg, 1, &p2, &init_notify, &connect_notify, 132 GNUNET_CORE_connect (p2.cfg, 1, &p2, &init_notify, &connect_notify,
133 &disconnect_notify, &inbound_notify, 133 &disconnect_notify, &inbound_notify, GNUNET_YES,
134 GNUNET_YES, &outbound_notify, GNUNET_YES, 134 &outbound_notify, GNUNET_YES, handlers);
135 handlers);
136 } 135 }
137 else 136 else
138 { 137 {
@@ -193,8 +192,8 @@ run (void *cls, char *const *args, const char *cfgfile,
193 &timeout_task, NULL); 192 &timeout_task, NULL);
194 p1.ch = 193 p1.ch =
195 GNUNET_CORE_connect (p1.cfg, 1, &p1, &init_notify, &connect_notify, 194 GNUNET_CORE_connect (p1.cfg, 1, &p1, &init_notify, &connect_notify,
196 &disconnect_notify, &inbound_notify, 195 &disconnect_notify, &inbound_notify, GNUNET_YES,
197 GNUNET_YES, &outbound_notify, GNUNET_YES, handlers); 196 &outbound_notify, GNUNET_YES, handlers);
198} 197}
199 198
200 199