gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (086fcdac -> 1601c288)


From: gnunet
Subject: [libmicrohttpd] branch master updated (086fcdac -> 1601c288)
Date: Wed, 31 Jan 2024 15:39:49 +0100

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from 086fcdac Fixes for 32-bit platforms
     new 65e62d04 Compiler warning fixes
     new 1601c288 configure: removed old workaround

The 2 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                              | 49 +++----------------------------
 src/examples/websocket_threaded_example.c |  6 ++--
 src/microhttpd/memorypool.c               | 12 ++++----
 src/microhttpd/test_dauth_userhash.c      |  2 +-
 src/tools/perf_replies.c                  |  2 +-
 5 files changed, 15 insertions(+), 56 deletions(-)

diff --git a/configure.ac b/configure.ac
index 17bee6b4..5c415eb9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3037,8 +3037,8 @@ extern "C"
 #endif
              struct tm* gmtime_s(const time_t* time, struct tm* result);
            ]], [[
-             struct tm res;
-             time_t t;
+             static struct tm res;
+             static time_t t = 0;
              gmtime_s (&t, &res);
           ]])
         ],
@@ -3058,8 +3058,8 @@ extern "C"
 #endif
 errno_t gmtime_s(struct tm* _tm, const time_t* time);
               ]], [[
-                 struct tm res;
-                 time_t t;
+                 static struct tm res;
+                 static time_t t = 0;
                  gmtime_s (&res, &t);
               ]])
             ],
@@ -3676,47 +3676,6 @@ AC_ARG_WITH([[gnutls]],
 
 AS_IF([test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes"],
   [
-    AC_CACHE_CHECK([[whether to add pkg-config special search directories]], 
[mhd_cv_pkgconf_add_dirs],
-     [
-      AS_IF([[test "x$host_os" = "xsolaris2.11" && test "x$cross_compiling" = 
"xno"]],
-       [
-        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-char size_chk[7-sizeof(char*)];
-#if defined(_LP64) || defined(__LP64__) || defined(__x86_64) || 
defined(__x86_64__)
-#error This is 64-bit target.
-choke me now
-#endif
-#if defined(__amd64) || defined(__amd64__) || defined(__sparcv9) || 
defined(__sparc_v9__)
-#error This is 64-bit target.
-choke me now
-#endif
-           ]], [[]]
-          )
-         ],
-         [
-          mhd_cv_pkgconf_add_dirs='/usr/lib/pkgconfig/gnutls-3'
-         ],
-         [
-          AS_IF([[test "x$host_cpu" = "xx86_64" || test "x$host_cpu" = 
"xi386"]],
-                  
[[mhd_cv_pkgconf_add_dirs='/usr/lib/amd64/pkgconfig/gnutls-3:/usr/lib/amd64/pkgconfig']],
-                [[test "x$host_cpu" = "xsparc"]],
-                  
[[mhd_cv_pkgconf_add_dirs='/usr/lib/sparkv9/pkgconfig/gnutls-3:/usr/lib/sparkv9/pkgconfig']],
-                  
[[mhd_cv_pkgconf_add_dirs='/usr/lib/64/pkgconfig/gnutls-3:/usr/lib/64/pkgconfig']]
-          )
-         ]
-        )
-       ],
-       [[ mhd_cv_pkgconf_add_dirs='no' ]]
-      )
-     ]
-    )
-    AS_IF([[test "x$mhd_cv_pkgconf_add_dirs" != "xno"]],
-     [
-      test "x$PKG_CONFIG_PATH" = "x" || 
PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PATH_SEPARATOR}"
-      PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${mhd_cv_pkgconf_add_dirs}"
-      export PKG_CONFIG_PATH
-     ]
-    )
     PKG_CHECK_MODULES(GNUTLS, [[gnutls]],
       [
        have_gnutls_pkgcfg='yes'
diff --git a/src/examples/websocket_threaded_example.c 
b/src/examples/websocket_threaded_example.c
index 1c98b428..50919190 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -382,15 +382,15 @@ BASE64Encode (const void *in, size_t len, char **output)
     c = (data[i] << 4) & 0x3F;
     if (++i < len)
     {
-      c |= (data[i] >> 4) & 0x0F;
+      c = (char) (c | ((data[i] >> 4) & 0x0F));
     }
     opt[ret++] = cvt[(int) c];
     if (i < len)
     {
-      c = (data[i] << 2) & 0x3F;
+      c = (char) (c | ((data[i] << 2) & 0x3F));
       if (++i < len)
       {
-        c |= (data[i] >> 6) & 0x03;
+        c = (char) (c | ((data[i] >> 6) & 0x03));
       }
       opt[ret++] = cvt[(int) c];
     }
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index 41503f63..c4a9cd5b 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -193,13 +193,13 @@ mp_ptr_diff_ (const void *p1, const void *p2)
 /**
  * Size of memory page
  */
-static size_t MHD_sys_page_size_ =
+static size_t MHD_sys_page_size_ = (size_t)
 #if defined(MHD_USE_PAGESIZE_MACRO_STATIC)
-  PAGESIZE;
+                                   PAGESIZE;
 #elif defined(MHD_USE_PAGE_SIZE_MACRO_STATIC)
-  PAGE_SIZE;
+                                   PAGE_SIZE;
 #else  /* ! MHD_USE_PAGE_SIZE_MACRO_STATIC */
-  _MHD_FALLBACK_PAGE_SIZE;   /* Default fallback value */
+                                   _MHD_FALLBACK_PAGE_SIZE; /* Default 
fallback value */
 #endif /* ! MHD_USE_PAGE_SIZE_MACRO_STATIC */
 
 /**
@@ -214,13 +214,13 @@ MHD_init_mem_pools_ (void)
   if (-1 != result)
     MHD_sys_page_size_ = (size_t) result;
   else
-    MHD_sys_page_size_ = MHD_DEF_PAGE_SIZE_;
+    MHD_sys_page_size_ = (size_t) MHD_DEF_PAGE_SIZE_;
 #elif defined(_WIN32)
   SYSTEM_INFO si;
   GetSystemInfo (&si);
   MHD_sys_page_size_ = (size_t) si.dwPageSize;
 #else
-  MHD_sys_page_size_ = MHD_DEF_PAGE_SIZE_;
+  MHD_sys_page_size_ = (size_t) MHD_DEF_PAGE_SIZE_;
 #endif /* _WIN32 */
   mhd_assert (0 == (MHD_sys_page_size_ % ALIGN_SIZE));
 }
diff --git a/src/microhttpd/test_dauth_userhash.c 
b/src/microhttpd/test_dauth_userhash.c
index c145beb0..63c81350 100644
--- a/src/microhttpd/test_dauth_userhash.c
+++ b/src/microhttpd/test_dauth_userhash.c
@@ -23,10 +23,10 @@
  * @author Karlson2k (Evgeny Grin)
  */
 
+#include "mhd_options.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "mhd_options.h"
 #include "microhttpd.h"
 #include "test_helpers.h"
 
diff --git a/src/tools/perf_replies.c b/src/tools/perf_replies.c
index 91d96030..81a3a3eb 100644
--- a/src/tools/perf_replies.c
+++ b/src/tools/perf_replies.c
@@ -32,11 +32,11 @@
  * @author Karlson2k (Evgeny Grin)
  */
 
+#include "mhd_options.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
-#include "mhd_options.h"
 #include "microhttpd.h"
 #include "mhd_tool_str_to_uint.h"
 #include "mhd_tool_get_cpu_count.h"

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