From 9e031cbba84383c1948abdfe141cd7ecc1ab37f9 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 15 Aug 2014 16:19:33 +0200 Subject: 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 --- proto_arp.c | 1 + proto_icmpv4.c | 1 + proto_icmpv6.c | 1 + proto_igmp.c | 1 + proto_ip_esp.c | 1 + proto_nlmsg.c | 1 + proto_none.c | 1 + proto_tcp.c | 1 + proto_udp.c | 1 + 9 files changed, 9 insertions(+) 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 /* 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 /* 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 #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 #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 /* 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 #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 #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 /* for ntohs() */ #include "proto.h" +#include "protos.h" #include "lookup.h" #include "pkt_buff.h" -- cgit v1.2.3-54-g00ecf