[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200421081507.108023-1-zenczykowski@gmail.com>
Date: Tue, 21 Apr 2020 01:15:07 -0700
From: Maciej Żenczykowski <zenczykowski@...il.com>
To: Maciej Żenczykowski <maze@...gle.com>,
Pablo Neira Ayuso <pablo@...filter.org>,
Florian Westphal <fw@...len.de>
Cc: Linux Network Development Mailing List <netdev@...r.kernel.org>,
Netfilter Development Mailing List
<netfilter-devel@...r.kernel.org>
Subject: [PATCH] libipt_ULOG.c - include strings.h for the definition of ffs()
From: Maciej Żenczykowski <maze@...gle.com>
This resolves compiler warnings:
extensions/libext4_srcs/gen/gensrcs/external/iptables/extensions/libipt_ULOG.c:89:32: error: implicit declaration of function 'ffs' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
printf(" --ulog-nlgroup %d", ffs(loginfo->nl_group));
^
extensions/libext4_srcs/gen/gensrcs/external/iptables/extensions/libipt_ULOG.c:105:9: error: implicit declaration of function 'ffs' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ffs(loginfo->nl_group));
^
Test: builds with less warnings
Signed-off-by: Maciej Żenczykowski <maze@...gle.com>
---
extensions/libipt_ULOG.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c
index fafb220b..5163eea3 100644
--- a/extensions/libipt_ULOG.c
+++ b/extensions/libipt_ULOG.c
@@ -11,6 +11,7 @@
*/
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include <xtables.h>
/* For 64bit kernel / 32bit userspace */
#include <linux/netfilter_ipv4/ipt_ULOG.h>
--
2.26.1.301.g55bc3eb7cb9-goog
Powered by blists - more mailing lists