gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: Fix all warnings that are now also code


From: gnunet
Subject: [gnunet] branch master updated: Fix all warnings that are now also code smells
Date: Thu, 05 Oct 2023 10:38:33 +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 a03cf810d Fix all warnings that are now also code smells
a03cf810d is described below

commit a03cf810db32e714b552bf2cdc4e237a2d3f1e73
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Oct 5 10:38:29 2023 +0200

    Fix all warnings that are now also code smells
---
 src/hello/hello-uri.c                    | 2 ++
 src/peerstore/gnunet-service-peerstore.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/hello/hello-uri.c b/src/hello/hello-uri.c
index 4a8591ed1..e885c470d 100644
--- a/src/hello/hello-uri.c
+++ b/src/hello/hello-uri.c
@@ -34,6 +34,7 @@
  *   that does this to create bootstrap HELLOs shipped with
  *   the TGZ.
  */
+#include "gnunet_time_lib.h"
 #include "platform.h"
 #include "gnunet_signatures.h"
 #include "gnunet_hello_uri_lib.h"
@@ -464,6 +465,7 @@ GNUNET_HELLO_builder_get_expiration_time (const struct
   }
   else
     GNUNET_break (0);
+  return GNUNET_TIME_UNIT_ZERO_ABS;
 }
 
 
diff --git a/src/peerstore/gnunet-service-peerstore.c 
b/src/peerstore/gnunet-service-peerstore.c
index 4c05a14fc..514b173bb 100644
--- a/src/peerstore/gnunet-service-peerstore.c
+++ b/src/peerstore/gnunet-service-peerstore.c
@@ -551,7 +551,6 @@ static int
 hosts_directory_scan_callback (void *cls, const char *fullname)
 {
   (void) cls;
-  const char *filename;
   ssize_t size_total;
   char buffer[GNUNET_MAX_MESSAGE_SIZE - 1] GNUNET_ALIGN;
   const struct GNUNET_MessageHeader *hello;

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