netfilter: nfnetlink_log: fix warning and prototype mismatch
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Nov 2008 11:16:52 +0000 (12:16 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 18 Nov 2008 11:16:52 +0000 (12:16 +0100)
net/netfilter/nfnetlink_log.c:537:1: warning: symbol 'nfulnl_log_packet' was not declared. Should it be static?

Including the proper header also revealed an incorrect prototype.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netfilter/nfnetlink_log.h
net/netfilter/nfnetlink_log.c

index 9b67f948a8d72a98187a8de936cd33700ad8cebb..b0569ff0775ed649fd07fa460bfcbd43cc91f746 100644 (file)
@@ -2,7 +2,7 @@
 #define _KER_NFNETLINK_LOG_H
 
 void
-nfulnl_log_packet(unsigned int pf,
+nfulnl_log_packet(u_int8_t pf,
                  unsigned int hooknum,
                  const struct sk_buff *skb,
                  const struct net_device *in,
index a51892b3f01a38070d8dc78fdc8128b8fbba19d6..2770b4e57ea0cbcca63929db8d8f9d49f38a0788 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/random.h>
 #include <net/sock.h>
 #include <net/netfilter/nf_log.h>
+#include <net/netfilter/nfnetlink_log.h>
 
 #include <asm/atomic.h>