aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cisco-wids.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2006-07-09 12:11:30 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2006-07-09 12:11:30 +0000
commit47ae5b75862310da29fd1a7e09c00323848edc2f (patch)
treed233e5eb276e32371aa025cd3c67599d989bc484 /epan/dissectors/packet-cisco-wids.c
parentbf477137b075fbf2b5809ea5925670287aa21d40 (diff)
Start declaring the proto_reg... functions to fix 'warning: no previous declaration'
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18691 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-cisco-wids.c')
-rw-r--r--epan/dissectors/packet-cisco-wids.c9
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)
{