1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From b119d29267dd1024957f2909687361111fca0ed1 Mon Sep 17 00:00:00 2001
From: Olivier Cochard-Labbé <olivier@cochard.me>
Date: Tue, 28 Feb 2023 22:09:18 +0100
Subject: Fix build error with clang 15
nfprobe_plugin.c:1521:16: error: passing arguments to 'set_net_funcs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
---
src/net_aggr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/net_aggr.h b/src/net_aggr.h
index 6927ba31..6d180f05 100644
--- a/src/net_aggr.h
+++ b/src/net_aggr.h
@@ -91,7 +91,7 @@ struct networks_file_data {
typedef void (*net_func) (struct networks_table *, struct networks_cache *, struct pkt_primitives *, struct pkt_bgp_primitives *, struct networks_file_data *);
/* prototypes */
-extern void set_net_funcs();
+extern void set_net_funcs(struct networks_table *);
extern void init_net_funcs(struct networks_table *, struct networks_cache *, struct pkt_primitives *, struct pkt_bgp_primitives *, struct networks_file_data *);
extern void mask_src_ipaddr(struct networks_table *, struct networks_cache *, struct pkt_primitives *, struct pkt_bgp_primitives *, struct networks_file_data *);
extern void mask_dst_ipaddr(struct networks_table *, struct networks_cache *, struct pkt_primitives *, struct pkt_bgp_primitives *, struct networks_file_data *);
--
2.30.2
|