File: 0001-Fix-build-error-with-clang-15.patch

package info (click to toggle)
pmacct 1.7.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,896 kB
  • sloc: ansic: 110,430; sh: 4,794; cpp: 4,375; python: 3,632; makefile: 523
file content (26 lines) | stat: -rw-r--r-- 1,396 bytes parent folder | download
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