RECLAIM/OIDC: code cleanup
[oweals/gnunet.git] / src / hostlist / gnunet-daemon-hostlist.c
index 8955e46e2daa6dfecde010b273e74e46e53fa056..760d5f543c60c9532ed6368681aa06f6532f24fe 100644 (file)
@@ -3,7 +3,7 @@
      Copyright (C) 2007, 2008, 2009, 2014 GNUnet e.V.
 
      GNUnet is free software: you can redistribute it and/or modify it
-     under the terms of the GNU General Public License as published
+     under the terms of the GNU Affero General Public License as published
      by the Free Software Foundation, either version 3 of the License,
      or (at your option) any later version.
 
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      Affero General Public License for more details.
+    
+     You should have received a copy of the GNU Affero General Public License
+     along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
 */
 
 /**
@@ -196,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");
@@ -230,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)