-style fix
[oweals/gnunet.git] / src / core / gnunet-service-core_neighbours.c
index d82d119d75a209420fc69c3ce78d3ab79e2dfb2a..63ba8dbb6659d9b4dc869e3cc9c8728b5c5225e1 100644 (file)
@@ -316,9 +316,10 @@ handle_transport_notify_connect (void *cls,
     GNUNET_break (0);
     return;
   }
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received connection from `%4s'.\n",
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Received connection from `%4s'.\n",
               GNUNET_i2s (peer));
-  n = GNUNET_malloc (sizeof (struct Neighbour));
+  n = GNUNET_new (struct Neighbour);
   n->peer = *peer;
   GNUNET_assert (GNUNET_OK ==
                  GNUNET_CONTAINER_multipeermap_put (neighbours,
@@ -479,8 +480,8 @@ GSC_NEIGHBOURS_init ()
  * @return GNUNET_OK (continue to iterate)
  */
 static int
-free_neighbour_helper (void *cls, 
-                      const struct GNUNET_PeerIdentity * key, 
+free_neighbour_helper (void *cls,
+                      const struct GNUNET_PeerIdentity * key,
                       void *value)
 {
   struct Neighbour *n = value;