clean up for configs
[oweals/gnunet.git] / src / peerinfo / peerinfo_api_notify.c
index 4520decfdcabd32fec6116770a266c974399b287..f5a076a20460fac413056e642fc08593adf96029 100644 (file)
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_client_lib.h"
+#include "gnunet_util_lib.h"
 #include "gnunet_peerinfo_service.h"
 #include "gnunet_protocols.h"
-#include "gnunet_time_lib.h"
 #include "peerinfo.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "nse-api",__VA_ARGS__)
@@ -166,6 +165,7 @@ process_notification (void *cls, const struct GNUNET_MessageHeader *msg)
       return;
     }
   }
+
   LOG (GNUNET_ERROR_TYPE_DEBUG,
        "Received information about peer `%s' from peerinfo database\n",
        GNUNET_i2s (&im->peer));
@@ -216,7 +216,7 @@ transmit_notify_request (void *cls, size_t size, void *buf)
   nm.include_friend_only = htonl (nc->include_friend_only);
   memcpy (buf, &nm, sizeof (struct NotifyMessage));
   receive_notifications (nc);
-  return sizeof (struct GNUNET_MessageHeader);
+  return sizeof (struct NotifyMessage);
 }