diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-06-16 06:28:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-06-16 06:28:50 +0000 |
commit | 003a0a5bac58529371c03381a44f9f80bef0d46b (patch) | |
tree | 80124ce93d3f1633bbdd06902be358e298551386 /epan/dissectors | |
parent | 85f9363860d3e5179d66e05a51d82257da5dfd4d (diff) | |
download | wireshark-003a0a5bac58529371c03381a44f9f80bef0d46b.tar.gz |
Include <ctype.h> to get "isdigit()" defined/declared.
"dissect_msrp()" is a "new-style" dissector; register it as such.
Squelch an uninitialized variable warning.
svn path=/trunk/; revision=14650
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-msrp.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/epan/dissectors/packet-msrp.c b/epan/dissectors/packet-msrp.c index cf6771d8a8..33a93142df 100644 --- a/epan/dissectors/packet-msrp.c +++ b/epan/dissectors/packet-msrp.c @@ -33,6 +33,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <ctype.h> #include <glib.h> #include <epan/conversation.h> @@ -298,7 +299,7 @@ dissect_msrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint token_2_len; gint token_3_start; guint token_3_len; - gint token_4_start; + gint token_4_start = 0; guint token_4_len = 0; gboolean is_msrp_response; gint end_line_offset; @@ -728,14 +729,11 @@ proto_register_msrp(void) "in addition to the dissection tree", &global_msrp_raw_text); - /* - * Register the dissector by name, so other dissectors can - * grab it by name rather than just referring to it directly - * (you can't refer to it directly from a plugin dissector - * on Windows without stuffing it into the Big Transfer Vector). - */ - register_dissector("msrp", dissect_msrp, proto_msrp); - + /* + * Register the dissector by name, so other dissectors can + * grab it by name rather than just referring to it directly. + */ + new_register_dissector("msrp", dissect_msrp, proto_msrp); } |