diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-02-27 05:53:46 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-02-27 05:53:46 +0000 |
commit | 7465ad157238c49c5b1179243e151b4cca97a244 (patch) | |
tree | 6c81848f865357ad80cdf91d918fa65c38a7d6f7 /epan/dissectors/packet-telnet.c | |
parent | e5aad204f81dcbfbd02e59062442301384778deb (diff) |
Fix
- warning: unused parameter 'item'.
- warning: format not a string literal and no format arguments.
svn path=/trunk/; revision=47912
Diffstat (limited to 'epan/dissectors/packet-telnet.c')
-rw-r--r-- | epan/dissectors/packet-telnet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-telnet.c b/epan/dissectors/packet-telnet.c index 8cd6a36062..7b178ec5e2 100644 --- a/epan/dissectors/packet-telnet.c +++ b/epan/dissectors/packet-telnet.c @@ -362,7 +362,7 @@ static const value_string tn3270_request_vals[] = { static void dissect_tn3270e_subopt(packet_info *pinfo _U_, const char *optname _U_, tvbuff_t *tvb, int offset, - int len, proto_tree *tree, proto_item *item) + int len, proto_tree *tree, proto_item *item _U_) { guint8 cmd; @@ -440,7 +440,7 @@ static const value_string telnet_outmark_subopt_cmd_vals[] = { static void dissect_outmark_subopt(packet_info *pinfo _U_, const char *optname _U_, tvbuff_t *tvb, int offset, - int len, proto_tree *tree, proto_item *item) + int len, proto_tree *tree, proto_item *item _U_) { int gs_offset, datalen; @@ -1072,7 +1072,7 @@ dissect_krb5_authentication_data(packet_info *pinfo, tvbuff_t *tvb, int offset, static void dissect_authentication_subopt(packet_info *pinfo, const char *optname _U_, tvbuff_t *tvb, int offset, int len, - proto_tree *tree, proto_item *item) + proto_tree *tree, proto_item *item _U_) { guint8 acmd; @@ -1687,7 +1687,7 @@ telnet_command(packet_info *pinfo, proto_tree *telnet_tree, tvbuff_t *tvb, int s break; } - proto_item_set_text(cmd_item, optname); + proto_item_set_text(cmd_item, "%s", optname); if (optcode == TN_SB) { offset = telnet_sub_option(pinfo, subopt_tree, subopt_item, tvb, start_offset); |