diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-31 15:34:00 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-31 15:34:00 +0000 |
commit | e6a22e689e2577eb9a3b6f77de22ac540795a1a3 (patch) | |
tree | 351a05d6273d5d6c5ac0aac64831adad5c94186a /epan/dissectors/packet-sna.c | |
parent | bd08ae7ee6d05ef7ec145f68cc1471b2178f0b2f (diff) |
Fix some "format not a string literal and no format arguments" warnings.
svn path=/trunk/; revision=26648
Diffstat (limited to 'epan/dissectors/packet-sna.c')
-rw-r--r-- | epan/dissectors/packet-sna.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sna.c b/epan/dissectors/packet-sna.c index 9ed35ed06f..003c7c7070 100644 --- a/epan/dissectors/packet-sna.c +++ b/epan/dissectors/packet-sna.c @@ -1150,7 +1150,7 @@ dissect_optional(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if(type == 0x22) ett = ett_sna_nlp_opti_22; if (tree) { sub_item = proto_tree_add_text(tree, tvb, - offset, len << 2, + offset, len << 2, "%s", val_to_str(type, sna_nlp_opti_vals, "Unknown Segment Type")); sub_tree = proto_item_add_subtree(sub_item, ett); @@ -2464,11 +2464,11 @@ dissect_control(tvbuff_t *parent_tvb, int offset, int control_len, if (key == 0x0e) ett = ett_sna_control_0e; if (((key == 0) || (key == 3) || (key == 5)) && hpr) - sub_item = proto_tree_add_text(tree, tvb, 0, -1, + sub_item = proto_tree_add_text(tree, tvb, 0, -1, "%s", val_to_str(key, sna_control_hpr_vals, "Unknown Control Vector")); else - sub_item = proto_tree_add_text(tree, tvb, 0, -1, + sub_item = proto_tree_add_text(tree, tvb, 0, -1, "%s", val_to_str(key, sna_control_vals, "Unknown Control Vector")); sub_tree = proto_item_add_subtree(sub_item, ett); |