Skip to contentSkip to conversation

libip4tc: Add static qualifier to dump_entry()

PATCH Applied Dmitry V. Levin 2 participants 2 messages Feb 18, 2010 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libip4tc: Add static qualifier to dump_entry()

Change dump_entry() signature defined in libip4tc.c to match prototype declared in libiptc.c and another static dump_entry() function defined in libip6tc.c. This function is not a part of the public libiptc API.

---
 libiptc/libip4tc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
libiptc/libip4tc.c +2 -2
index 3c7b073..0c64ac8 100644
@@ -124,8 +124,8 @@ typedef unsigned int socklen_t;
 
 #define IP_PARTS(n) IP_PARTS_NATIVE(ntohl(n))
 
-int
-dump_entry(STRUCT_ENTRY *e, struct iptc_handle *const handle)
+static int
+dump_entry(struct ipt_entry *e, struct iptc_handle *const handle)
 {
 	size_t i;
 	STRUCT_ENTRY_TARGET *t;
Signature · 1 line
ldv
#1 lore raw
Quoted 3 lines · Dmitry V. Levin

Change dump_entry() signature defined in libip4tc.c to match prototype declared in libiptc.c and another static dump_entry() function defined in libip6tc.c. This function is not a part of the public libiptc API.

Applied, thanks.