clean up zone iteration logic
[oweals/gnunet.git] / src / namestore / namestore_api_monitor.c
index 00f0887d47bfd1287325515c20f79aeb7434a678..8e6d39ad7e2612bd242b6e31af6331f56fa3d029 100644 (file)
@@ -114,6 +114,8 @@ handle_sync (void *cls,
 {
   struct GNUNET_NAMESTORE_ZoneMonitor *zm = cls;
 
+  (void) cls;
+  (void) msg;
   if (NULL != zm->sync_cb)
     zm->sync_cb (zm->sync_cb_cls);
 }
@@ -138,6 +140,7 @@ check_result (void *cls,
   const char *name_tmp;
   const char *rd_ser_tmp;
 
+  (void) cls;
   lrm_len = ntohs (lrm->gns_header.header.size);
   rd_len = ntohs (lrm->rd_len);
   rd_count = ntohs (lrm->rd_count);
@@ -231,6 +234,7 @@ mq_error_handler (void *cls,
 {
   struct GNUNET_NAMESTORE_ZoneMonitor *zm = cls;
 
+  (void) error;
   reconnect (zm);
 }
 
@@ -262,7 +266,7 @@ reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm)
     GNUNET_MQ_destroy (zm->mq);
     zm->error_cb (zm->error_cb_cls);
   }
-  zm->mq = GNUNET_CLIENT_connecT (zm->cfg,
+  zm->mq = GNUNET_CLIENT_connect (zm->cfg,
                                   "namestore",
                                   handlers,
                                   &mq_error_handler,