[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 65/156: configure: cosmetics
From: |
gnunet |
Subject: |
[libmicrohttpd] 65/156: configure: cosmetics |
Date: |
Sun, 28 May 2023 17:51:58 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit f9f78eb692860d90cf4644aa343b17007f6e0be3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Mar 14 15:38:32 2023 +0300
configure: cosmetics
Fixed warnings reported by some IDEs.
---
configure.ac | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/configure.ac b/configure.ac
index 15d6a1cf..b0d3554f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1201,7 +1201,7 @@ MHD_CHECK_FUNC([writev],
char some_str[4] = "OK\n";
iov[0].iov_base = (void *) some_str;
iov[0].iov_len = 3;
- if (0 > writev(1, iov, 1))
+ i][f (0 > writev(1, iov, 1))
return 2;
]]
)
@@ -1236,7 +1236,7 @@ MHD_FIND_LIB([sendmsg],
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
- if (0 > sendmsg(1, &msg, 0))
+ i][f (0 > sendmsg(1, &msg, 0))
return -1;
]],
[socket],
@@ -1548,7 +1548,7 @@ AC_CHECK_MEMBERS([struct sockaddr_in.sin_len, struct
sockaddr_in6.sin6_len,
#endif
])
-MHD_CHECK_LINK_RUN([[for working getsockname()]],[[mhd_cv_getsockname_usable]],
+MHD_CHECK_LINK_RUN([[f][or working
getsockname()]],[[mhd_cv_getsockname_usable]],
[[mhd_cv_getsockname_usable='assuming yes']],
[
AC_LANG_SOURCE(
@@ -1798,7 +1798,7 @@ AS_UNSET([[use_itc]])
AS_IF([[test "x$enable_itc" = "xeventfd" || test "x$enable_itc" = "xauto"]],
[
- MHD_CHECK_LINK_RUN([[for working
eventfd(2)]],[[mhd_cv_eventfd_usable]],[[mhd_cv_eventfd_usable='assuming no']],
+ MHD_CHECK_LINK_RUN([[f][or working
eventfd(2)]],[[mhd_cv_eventfd_usable]],[[mhd_cv_eventfd_usable='assuming no']],
[
AC_LANG_SOURCE([[
#include <sys/eventfd.h>
@@ -1944,12 +1944,12 @@ MHD_CHECK_FUNC([accept4],
#endif
#include <sys/socket.h>
]],
- [
+ [[
struct sockaddr sk_addr;
socklen_t addr_size;
- if (0 > accept4(0, &sk_addr, &addr_size, 0))
+ i][f (0 > accept4(0, &sk_addr, &addr_size, 0))
return 3;
- ]
+ ]]
)
MHD_CHECK_FUNC([gmtime_r],
[[
@@ -1961,8 +1961,8 @@ MHD_CHECK_FUNC([gmtime_r],
[[
time_t timer = (time_t) 0;
struct tm res;
-
- if (&res != gmtime_r(&timer, &res))
+
+ i][f (&res != gmtime_r(&timer, &res))
return 3;
]]
)
@@ -1980,8 +1980,8 @@ MHD_CHECK_FUNC([memmem],
size_t hslen = 3;
const char *needle = "b";
size_t needlelen = 1;
-
- if ((haystack + 1) != memmem(haystack, hslen, needle, needlelen))
+
+ i][f ((haystack + 1) != memmem(haystack, hslen, needle, needlelen))
return 3;
]]
)
@@ -1992,10 +1992,10 @@ MHD_CHECK_FUNC([snprintf],
[[
char buf[2];
- if (1 != snprintf(buf, 2, "a"))
+ i][f (1 != snprintf(buf, 2, "a"))
return 3;
/* Do not use the next check to avoid compiler warning */
- /* if (4 != snprintf(buf, 2, "abcd"))
+ /* i][f (4 != snprintf(buf, 2, "abcd"))
return 4; */
]]
)
@@ -2066,7 +2066,7 @@ AC_CHECK_DECL([SOCK_NONBLOCK],
[AC_DEFINE([HAVE_SOCK_NONBLOCK], [1], [SOCK_NONBL
MHD_FIND_LIB([clock_gettime],[[#include <time.h>]],
[[
struct timespec tp;
- if (0 > clock_gettime(CLOCK_REALTIME, &tp))
+ i][f (0 > clock_gettime(CLOCK_REALTIME, &tp))
return 3;
]],
[rt],
@@ -2144,7 +2144,7 @@ MHD_CHECK_FUNC([[gettimeofday]],
]],
[[
struct timeval tv;
- if (0 != gettimeofday (&tv, (void*) 0))
+ i][f (0 != gettimeofday (&tv, (void*) 0))
return 1;
]]
)
@@ -2285,7 +2285,7 @@ MHD_CHECK_FUNC([lseek64],
#include <unistd.h>
]],
[[
- if (((off64_t) -1) == lseek64(0, (off64_t) 0, SEEK_SET))
+ i][f (((off64_t) -1) == lseek64(0, (off64_t) 0, SEEK_SET))
return 3;
]]
)
@@ -2298,7 +2298,7 @@ MHD_CHECK_FUNC([pread64],
]],
[[
char buf[5];
- if (0 > pread64(0, (void *) buf, 1, (off64_t) 0))
+ i][f (0 > pread64(0, (void *) buf, 1, (off64_t) 0))
return 3;
]]
)
@@ -2311,7 +2311,7 @@ MHD_CHECK_FUNC([pread],
]],
[[
char buf[5];
- if (0 > pread(0, (void *) buf, 1, 0))
+ i][f (0 > pread(0, (void *) buf, 1, 0))
return 3;
]]
)
@@ -3251,7 +3251,7 @@ AS_IF([test "x${enable_sanitizers}" = "xno"],
enable_san_undef="no"
enable_san_leak="no"
enable_san_upoison="no"
- for san in `AS_ECHO([${enable_sanitizers}]) | tr ',' ' '`
+ f][or san in `AS_ECHO([${enable_sanitizers}]) | tr ',' ' '`
do
AS_CASE([$san],
[address], [enable_san_address="yes"],
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 53/156: mhd_find_lib.m4: fixed compatibility with old autoconf, (continued)
- [libmicrohttpd] 53/156: mhd_find_lib.m4: fixed compatibility with old autoconf, gnunet, 2023/05/28
- [libmicrohttpd] 52/156: mhd_find_lib.m4: added new autoconf macro, gnunet, 2023/05/28
- [libmicrohttpd] 59/156: configure: fixed some compiler warnings for checks, gnunet, 2023/05/28
- [libmicrohttpd] 58/156: mhd_shutdown_socket_trigger.m4: fixed compiler warning, gnunet, 2023/05/28
- [libmicrohttpd] 61/156: libcurl.m4: patched to fix compiler warning, gnunet, 2023/05/28
- [libmicrohttpd] 60/156: libcurl.m4: updated to the latest version, gnunet, 2023/05/28
- [libmicrohttpd] 63/156: configure: fixed more compiler warnings in log, gnunet, 2023/05/28
- [libmicrohttpd] 56/156: configure: fixed checks for tsearch() and related, gnunet, 2023/05/28
- [libmicrohttpd] 57/156: Makefile: fixed build with 'make' without nested vars support, gnunet, 2023/05/28
- [libmicrohttpd] 62/156: configure: fixed checking for system libs, fixed .pc file, gnunet, 2023/05/28
- [libmicrohttpd] 65/156: configure: cosmetics,
gnunet <=
- [libmicrohttpd] 64/156: configure: fixed potential compiler warnings, added usage of cache vars, gnunet, 2023/05/28
- [libmicrohttpd] 68/156: mhd_shutdown_socket_trigger.m4: fixed preprocessor conditional, gnunet, 2023/05/28
- [libmicrohttpd] 72/156: HTTPS test: fixed unmatched function declaration, gnunet, 2023/05/28
- [libmicrohttpd] 73/156: Disabled badly broken TLS tests, gnunet, 2023/05/28
- [libmicrohttpd] 84/156: autoinit_funcs.h: improved formatting, gnunet, 2023/05/28
- [libmicrohttpd] 85/156: Fixed many macros, gnunet, 2023/05/28
- [libmicrohttpd] 79/156: Updated libtool fixes, gnunet, 2023/05/28
- [libmicrohttpd] 90/156: autoinit_funcs.h: unified English spelling (prefer GB over US), gnunet, 2023/05/28
- [libmicrohttpd] 94/156: test_postform: updated to support the new libcurl API, gnunet, 2023/05/28
- [libmicrohttpd] 96/156: autoinit_funcs.h: fixed compiler warning, gnunet, 2023/05/28