RECLAIM/OIDC: code cleanup
[oweals/gnunet.git] / src / hostlist / gnunet-daemon-hostlist.c
index 478776128da3a0d85964c7aeac89ddf9789e771e..760d5f543c60c9532ed6368681aa06f6532f24fe 100644 (file)
@@ -201,9 +201,8 @@ connect_handler (void *cls,
                 const struct GNUNET_PeerIdentity *peer,
                 struct GNUNET_MQ_Handle *mq)
 {
-  if (0 == memcmp (&me,
-                  peer,
-                  sizeof (struct GNUNET_PeerIdentity)))
+  if (0 == GNUNET_memcmp (&me,
+                  peer))
     return NULL;
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "A new peer connected, notifying client and server\n");
@@ -235,9 +234,8 @@ disconnect_handler (void *cls,
                     const struct GNUNET_PeerIdentity *peer,
                    void *internal_cls)
 {
-  if (0 == memcmp (&me,
-                  peer,
-                  sizeof (struct GNUNET_PeerIdentity)))
+  if (0 == GNUNET_memcmp (&me,
+                  peer))
     return;
   /* call hostlist client disconnect handler */
   if (NULL != client_dh)