diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-08-15 16:19:33 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-08-15 16:19:33 +0200 |
commit | 9e031cbba84383c1948abdfe141cd7ecc1ab37f9 (patch) | |
tree | cf1ff031331f15315e7bd44a68583cda5a2cc94d | |
parent | e1b4e7c88fdd8dbb64dae7b9a14d2c13e3751015 (diff) |
dissectors: Include protos.h in some dissectors for protocol ops declaration
Fixes sparse warnings like the following in some dissectors:
proto_arp.c:158:17: warning: symbol 'arp_ops' was not declared. Should it be static?
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | proto_arp.c | 1 | ||||
-rw-r--r-- | proto_icmpv4.c | 1 | ||||
-rw-r--r-- | proto_icmpv6.c | 1 | ||||
-rw-r--r-- | proto_igmp.c | 1 | ||||
-rw-r--r-- | proto_ip_esp.c | 1 | ||||
-rw-r--r-- | proto_nlmsg.c | 1 | ||||
-rw-r--r-- | proto_none.c | 1 | ||||
-rw-r--r-- | proto_tcp.c | 1 | ||||
-rw-r--r-- | proto_udp.c | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/proto_arp.c b/proto_arp.c index fcbe02b..ba52a0b 100644 --- a/proto_arp.c +++ b/proto_arp.c @@ -8,6 +8,7 @@ #include <netinet/in.h> /* for ntohs() */ #include "proto.h" +#include "protos.h" #include "lookup.h" #include "pkt_buff.h" #include "built_in.h" diff --git a/proto_icmpv4.c b/proto_icmpv4.c index 5ef074d..55dd1b7 100644 --- a/proto_icmpv4.c +++ b/proto_icmpv4.c @@ -9,6 +9,7 @@ #include <netinet/in.h> /* for ntohs() */ #include "proto.h" +#include "protos.h" #include "csum.h" #include "pkt_buff.h" #include "built_in.h" diff --git a/proto_icmpv6.c b/proto_icmpv6.c index 47ef6a6..2609018 100644 --- a/proto_icmpv6.c +++ b/proto_icmpv6.c @@ -18,6 +18,7 @@ #include <asm/byteorder.h> #include "proto.h" +#include "protos.h" #include "pkt_buff.h" #include "built_in.h" diff --git a/proto_igmp.c b/proto_igmp.c index e535fa7..24ed913 100644 --- a/proto_igmp.c +++ b/proto_igmp.c @@ -10,6 +10,7 @@ #include <netinet/in.h> #include "proto.h" +#include "protos.h" #include "csum.h" #include "built_in.h" #include "pkt_buff.h" diff --git a/proto_ip_esp.c b/proto_ip_esp.c index c588141..51a5689 100644 --- a/proto_ip_esp.c +++ b/proto_ip_esp.c @@ -11,6 +11,7 @@ #include <netinet/in.h> /* for ntohs() */ #include "proto.h" +#include "protos.h" #include "built_in.h" #include "pkt_buff.h" diff --git a/proto_nlmsg.c b/proto_nlmsg.c index 3f5ef64..3471094 100644 --- a/proto_nlmsg.c +++ b/proto_nlmsg.c @@ -11,6 +11,7 @@ #include "pkt_buff.h" #include "proto.h" +#include "protos.h" static void nlmsg(struct pkt_buff *pkt) { diff --git a/proto_none.c b/proto_none.c index 41835a0..0c0f62a 100644 --- a/proto_none.c +++ b/proto_none.c @@ -9,6 +9,7 @@ #include <ctype.h> #include "proto.h" +#include "protos.h" #include "pkt_buff.h" void empty(struct pkt_buff *pkt __maybe_unused) {} diff --git a/proto_tcp.c b/proto_tcp.c index 04ae858..96d00f6 100644 --- a/proto_tcp.c +++ b/proto_tcp.c @@ -11,6 +11,7 @@ #include <asm/byteorder.h> #include "proto.h" +#include "protos.h" #include "lookup.h" #include "built_in.h" #include "pkt_buff.h" diff --git a/proto_udp.c b/proto_udp.c index af3b82b..b55dd2e 100644 --- a/proto_udp.c +++ b/proto_udp.c @@ -9,6 +9,7 @@ #include <netinet/in.h> /* for ntohs() */ #include "proto.h" +#include "protos.h" #include "lookup.h" #include "pkt_buff.h" |