gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: -fix FTBFS


From: gnunet
Subject: [gnunet] branch master updated: -fix FTBFS
Date: Thu, 20 Oct 2022 12:56:56 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 6f2f55e1d -fix FTBFS
6f2f55e1d is described below

commit 6f2f55e1d5b72cfc1fbd9715d7846921f6cb1e1b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Oct 20 12:56:54 2022 +0200

    -fix FTBFS
---
 src/zonemaster/Makefile.am                 |  3 ++-
 src/zonemaster/gnunet-service-zonemaster.c | 21 ++++++++++++++++-----
 2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/src/zonemaster/Makefile.am b/src/zonemaster/Makefile.am
index ef82fc19b..635c195ed 100644
--- a/src/zonemaster/Makefile.am
+++ b/src/zonemaster/Makefile.am
@@ -28,4 +28,5 @@ gnunet_service_zonemaster_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(top_builddir)/src/namestore/libgnunetnamestore.la \
   $(top_builddir)/src/namecache/libgnunetnamecache.la \
-  $(GN_LIBINTL)
+  $(GN_LIBINTL) \
+  -lpthread
diff --git a/src/zonemaster/gnunet-service-zonemaster.c 
b/src/zonemaster/gnunet-service-zonemaster.c
index fb55fd718..95863eeac 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -24,6 +24,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
+#include <pthread.h>
 #include "gnunet_util_lib.h"
 #include "gnunet_dnsparser_lib.h"
 #include "gnunet_dht_service.h"
@@ -99,7 +100,7 @@
 /**
  * Our workers
  */
-static pthread_t * worker;
+static pthread_t *worker;
 
 /**
  * Lock for the open jobs queue.
@@ -469,6 +470,7 @@ shutdown_task (void *cls)
   }
 }
 
+
 /**
  * Cache operation complete, clean up.
  *
@@ -528,7 +530,6 @@ refresh_block (const struct GNUNET_GNSRECORD_Block *block)
 }
 
 
-
 /**
  * Method called periodically that triggers iteration over authoritative 
records
  *
@@ -764,6 +765,7 @@ dht_put_continuation (void *cls)
   GNUNET_free (ma);
 }
 
+
 static void
 free_job (struct OpenSignJob *job)
 {
@@ -859,8 +861,10 @@ perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey 
*key,
               label,
               GNUNET_STRINGS_absolute_time_to_string (expire));
   num_public_records++;
+  return NULL; // FIXME-Martin: WTF?
 }
 
+
 static void
 notification_pipe_cb (void *cls);
 
@@ -888,7 +892,7 @@ initiate_put_from_pipe_trigger (void *cls)
   while (GNUNET_SYSERR !=
          (nf_count = GNUNET_DISK_file_read (np_fh, buf, sizeof (buf))))
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Read %lld notifications from pipe\n",
-                nf_count);
+                (long long) nf_count);
   if (NULL == job)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -1004,6 +1008,7 @@ zone_iteration_finished (void *cls)
   }
 }
 
+
 /**
  * Function used to put all records successively into the DHT.
  *
@@ -1073,6 +1078,7 @@ put_gns_record (void *cls,
                                     ma);
 }
 
+
 /**
  * Periodically iterate over all zones and store everything in DHT
  *
@@ -1204,6 +1210,7 @@ perform_dht_put_monitor (const struct 
GNUNET_IDENTITY_PrivateKey *key,
   GNUNET_assert (0 == pthread_mutex_unlock (&jobs_lock));
 }
 
+
 /**
  * Process a record that was stored in the namestore
  * (invoked by the monitor).
@@ -1279,8 +1286,9 @@ handle_monitor_error (void *cls)
                             GNUNET_NO);
 }
 
+
 static void*
-sign_worker (void *)
+sign_worker (void *cls)
 {
   struct OpenSignJob *job;
   const struct GNUNET_DISK_FileHandle *fh;
@@ -1310,13 +1318,15 @@ sign_worker (void *)
                   "Done, notifying main thread through pipe!\n");
       GNUNET_DISK_file_write (fh, "!", 1);
     }
-    else {
+    else
+    {
       sleep (1);
     }
   }
   return NULL;
 }
 
+
 static void
 notification_pipe_cb (void *cls)
 {
@@ -1325,6 +1335,7 @@ notification_pipe_cb (void *cls)
   GNUNET_SCHEDULER_add_now (&initiate_put_from_pipe_trigger, NULL);
 }
 
+
 /**
  * Perform zonemaster duties: watch namestore, publish records.
  *

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]