diff options
author | Jörg Mayer <jmayer@loplof.de> | 2006-07-09 12:11:30 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2006-07-09 12:11:30 +0000 |
commit | eb2e0d867df65bb0ef88ad37dc4d5a1e0717d230 (patch) | |
tree | d233e5eb276e32371aa025cd3c67599d989bc484 /epan/dissectors/packet-cisco-wids.c | |
parent | ba62d2e1b3578fcd9f45dfb6ca0c4dd54744ac1b (diff) |
Start declaring the proto_reg... functions to fix 'warning: no previous declaration'
svn path=/trunk/; revision=18691
Diffstat (limited to 'epan/dissectors/packet-cisco-wids.c')
-rw-r--r-- | epan/dissectors/packet-cisco-wids.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-cisco-wids.c b/epan/dissectors/packet-cisco-wids.c index 1ab5caf9ed..1cc12af77a 100644 --- a/epan/dissectors/packet-cisco-wids.c +++ b/epan/dissectors/packet-cisco-wids.c @@ -25,7 +25,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* With current IOS, you can use Cisco wireless Bridges/APs as a +/* With current IOS, you can use Cisco wireless Bridges/APs as * wireless sniffers and configure them with the "monitor ..." * command to * send the data to some central IDS. * This dissector tries to decode those frames. @@ -52,8 +52,6 @@ #include <epan/prefs.h> static guint udp_port = 0; -void proto_reg_handoff_cwids(void); - static int proto_cwids = -1; static int hf_cwids_version = -1; @@ -131,7 +129,7 @@ dissect_cwids(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset += capturelen; } - if (remain > 0) { /* FIXME: Shouldn't happen? */ + if (remain > 0) { /* FIXME: Shouldn't happen? Maybe if packet is truncated */ ti = proto_tree_add_item(tree, proto_cwids, tvb, offset, remain, FALSE); cwids_tree = proto_item_add_subtree(ti, ett_cwids); @@ -139,6 +137,9 @@ dissect_cwids(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } +void proto_register_cwids(void); +void proto_reg_handoff_cwids(void); + void proto_register_cwids(void) { |