gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -fix return value of put initiation


From: gnunet
Subject: [gnunet] branch master updated: -fix return value of put initiation
Date: Thu, 20 Oct 2022 15:13:21 +0200

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

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new e2942b640 -fix return value of put initiation
e2942b640 is described below

commit e2942b640a1d92cba8e074438a77504fba27ecc3
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Oct 20 22:13:15 2022 +0900

    -fix return value of put initiation
---
 src/zonemaster/gnunet-service-zonemaster.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/zonemaster/gnunet-service-zonemaster.c 
b/src/zonemaster/gnunet-service-zonemaster.c
index 95863eeac..48c27380b 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -788,7 +788,7 @@ free_job (struct OpenSignJob *job)
  * @param ma handle for the put operation
  * @return DHT PUT handle, NULL on error
  */
-static struct GNUNET_DHT_PutHandle *
+static void
 perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey *key,
                  const char *label,
                  const struct GNUNET_GNSRECORD_Data *rd,
@@ -830,7 +830,7 @@ perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey 
*key,
   if (NULL == block)
   {
     GNUNET_break (0);
-    return NULL;   /* whoops */
+    return;   /* whoops */
   }
   if (rd_count != rd_public_count)
     GNUNET_assert (GNUNET_OK ==  GNUNET_GNSRECORD_block_create_unsigned (key,
@@ -861,7 +861,7 @@ 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?
+  return;
 }
 
 
@@ -1142,7 +1142,7 @@ dht_put_monitor_continuation (void *cls)
  * @param ma handle for the PUT operation
  * @return DHT PUT handle, NULL on error
  */
-static struct GNUNET_DHT_PutHandle *
+static void
 perform_dht_put_monitor (const struct GNUNET_IDENTITY_PrivateKey *key,
                          const char *label,
                          const struct GNUNET_GNSRECORD_Data *rd,
@@ -1184,7 +1184,7 @@ perform_dht_put_monitor (const struct 
GNUNET_IDENTITY_PrivateKey *key,
   if (NULL == block)
   {
     GNUNET_break (0);
-    return NULL;   /* whoops */
+    return;   /* whoops */
   }
   if (rd_count != rd_public_count)
     GNUNET_assert (GNUNET_OK ==  GNUNET_GNSRECORD_block_create_unsigned (key,

-- 
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]