diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-04-10 15:01:18 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-04-10 15:01:18 +0000 |
commit | 163e55f306c757976e4189c7d64d89fd9dab2779 (patch) | |
tree | b7c2954066b53ba61e079a62ed95e98281e2ae3e | |
parent | 41e10f6bf2e7747b3eac67e6409a1ac0083aba83 (diff) |
prefs_register_protocol() not needed since no prefs; Coverity #1185 (UNUSED_VALUE).
Also: #include <stdio.h> not needed.
svn path=/trunk/; revision=36533
-rw-r--r-- | epan/dissectors/packet-babel.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/epan/dissectors/packet-babel.c b/epan/dissectors/packet-babel.c index 5724a41c38..37adb6e912 100644 --- a/epan/dissectors/packet-babel.c +++ b/epan/dissectors/packet-babel.c @@ -32,10 +32,6 @@ #include <epan/packet.h> #include <epan/prefs.h> -#include <stdio.h> - -void proto_reg_handoff_babel(void); - static int proto_babel = -1; static gint ett_babel = -1; @@ -99,7 +95,7 @@ static const value_string aes[] = { { 0, NULL } }; -/* The prefix for v6-mapped IPv4 addresses. Format_address below +/* The prefix for v6-mapped IPv4 addresses. Format_address below returns IPv4 addresses in that format. */ static const unsigned char v4prefix[16] = @@ -211,7 +207,7 @@ dissect_babel(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_add_fstr(pinfo->cinfo, COL_INFO, "Version %u", version); return 2; } - + if(tree) { ti = proto_tree_add_item(tree, proto_babel, tvb, 0, -1, ENC_NA); babel_tree = proto_item_add_subtree(ti, ett_babel); @@ -501,16 +497,11 @@ proto_register_babel(void) &ett_subtree, }; - module_t *babel_module; - proto_babel = proto_register_protocol("Babel Routing Protocol", "Babel", "babel"); proto_register_field_array(proto_babel, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - - babel_module = prefs_register_protocol(proto_babel, - proto_reg_handoff_babel); } void |