[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated (a6c228f83 -> de671d67d)
From: |
gnunet |
Subject: |
[gnunet] branch master updated (a6c228f83 -> de671d67d) |
Date: |
Fri, 03 Jan 2025 11:53:15 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a change to branch master
in repository gnunet.
from a6c228f83 -pogen
new 15d6613f1 always use -latomic, existing configure test does not work
on R-Pi
new 71c34749f -fix compiler warning
new de671d67d remove broken configure test for libatomic
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
configure.ac | 2 --
src/lib/util/Makefile.am | 6 +-----
src/lib/util/configuration.c | 32 +++++++++++++++++++-------------
3 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/configure.ac b/configure.ac
index 78a4cf4c2..4f29795bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -744,8 +744,6 @@ AC_CHECK_HEADER([curl/curl.h],
[],
[AC_MSG_ERROR([cURL must support
CURLINFO_TLS_SSL_PTR])],
[[#include <curl/curl.h>]])])
-# libatomic
-CHECK_WITH_LIB([atomic], [__atomic_load_8], [], [HAVE_LIBATOMIC])
# check for nss
AC_CHECK_HEADERS([nss.h], [nss=true], [nss=false])
diff --git a/src/lib/util/Makefile.am b/src/lib/util/Makefile.am
index 5af862bf0..636d5fb73 100644
--- a/src/lib/util/Makefile.am
+++ b/src/lib/util/Makefile.am
@@ -111,15 +111,11 @@ libgnunetutil_la_SOURCES = \
proc_compat.c \
gnunet_error_codes.c
-if HAVE_LIBATOMIC
if DARWIN
- LIBATOMIC=
+ LIBATOMIC=
else
LIBATOMIC= -latomic
endif
-else
- LIBATOMIC=
-endif
if HAVE_LIBIDN
LIBIDN= -lidn
diff --git a/src/lib/util/configuration.c b/src/lib/util/configuration.c
index 3759af86f..5bee5418c 100644
--- a/src/lib/util/configuration.c
+++ b/src/lib/util/configuration.c
@@ -1797,14 +1797,15 @@ GNUNET_CONFIGURATION_set_value_float (struct
GNUNET_CONFIGURATION_Handle *cfg,
{
char s[64];
- // TODO FIXME note that this truncates the float
- // #9369
- const locale_t cl = newlocale (LC_NUMERIC_MASK, "C", (locale_t) 0);
+ /* See: #9369 */
+ const locale_t cl = newlocale (LC_NUMERIC_MASK,
+ "C",
+ (locale_t) 0);
locale_t old_locale = uselocale (cl);
GNUNET_snprintf (s,
64,
"%f",
- number);
+ (double) number);
uselocale (old_locale);
GNUNET_CONFIGURATION_set_value_string (cfg,
section,
@@ -1829,15 +1830,20 @@ GNUNET_CONFIGURATION_get_value_float (
return GNUNET_NO;
if (NULL == e->val)
return GNUNET_NO;
- // #9369
- const locale_t cl = newlocale (LC_NUMERIC_MASK, "C", (locale_t) 0);
- locale_t old_locale = uselocale (cl);
- if (1 != sscanf (e->val,
- "%f%1s",
- number,
- dummy))
- return GNUNET_SYSERR;
- uselocale (old_locale);
+ /* See #9369 */
+ {
+ const locale_t cl = newlocale (LC_NUMERIC_MASK,
+ "C",
+ (locale_t) 0);
+ locale_t old_locale = uselocale (cl);
+
+ if (1 != sscanf (e->val,
+ "%f%1s",
+ number,
+ dummy))
+ return GNUNET_SYSERR;
+ uselocale (old_locale);
+ }
return GNUNET_OK;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated (a6c228f83 -> de671d67d),
gnunet <=