Skip to contentSkip to conversation

api: use ANSI style function declarations

PATCH Pablo Neira Ayuso 1 participant 4 messages Oct 8, 2009 5 messages not in the archive netfilter

lore
Share & tools
lore
author maintainer Applied
#6 lore raw

Re: [PATCH 3/4] [LIBNETFILTER_CONNTRACK] snprintf: remove duplicate initializer entry

In reply to a message not in the archive

src/conntrack/snprintf.c const char *proto2str[IPPROTO_MAX] = { · line 25

Quoted 11 lines · Hannes Eder
src/conntrack/snprintf.c +0 -1
index 452d62f..1104c63 100644
@@ -21,7 +21,6 @@ const char *proto2str[IPPROTO_MAX] = {
 	[IPPROTO_ICMPV6]		= "icmpv6",
 	[IPPROTO_SCTP]			= "sctp",
 	[IPPROTO_GRE]			= "gre",
-	[IPPROTO_UDPLITE]		= "udplite",
 	[IPPROTO_DCCP]			= "dccp",
 };

Applied, thanks!

author maintainer
#8 lore raw

Re: [PATCH 4/4] [LIBNETFILTER_CONNTRACK] api: remove dead code (nfexp_parse_expect)

In reply to a message not in the archive
Quoted 6 lines · Hannes Eder

---
I am not sure about this one, it just popped up after making symbols that are just used in file scope static. This might be a function the you would like to export, so a proper fix would be adding it to the header file.

Oh, I see. I think that we also need to export nfexp_build* functions to provide an API similar to the conntrack API. Let me think what to do with this. So far, nobody has used them though.