aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/gnunet-daemon-hostlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index 478776128..760d5f543 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -201,9 +201,8 @@ connect_handler (void *cls,
201 const struct GNUNET_PeerIdentity *peer, 201 const struct GNUNET_PeerIdentity *peer,
202 struct GNUNET_MQ_Handle *mq) 202 struct GNUNET_MQ_Handle *mq)
203{ 203{
204 if (0 == memcmp (&me, 204 if (0 == GNUNET_memcmp (&me,
205 peer, 205 peer))
206 sizeof (struct GNUNET_PeerIdentity)))
207 return NULL; 206 return NULL;
208 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 207 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
209 "A new peer connected, notifying client and server\n"); 208 "A new peer connected, notifying client and server\n");
@@ -235,9 +234,8 @@ disconnect_handler (void *cls,
235 const struct GNUNET_PeerIdentity *peer, 234 const struct GNUNET_PeerIdentity *peer,
236 void *internal_cls) 235 void *internal_cls)
237{ 236{
238 if (0 == memcmp (&me, 237 if (0 == GNUNET_memcmp (&me,
239 peer, 238 peer))
240 sizeof (struct GNUNET_PeerIdentity)))
241 return; 239 return;
242 /* call hostlist client disconnect handler */ 240 /* call hostlist client disconnect handler */
243 if (NULL != client_dh) 241 if (NULL != client_dh)