diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-07-25 09:03:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-07-25 09:03:02 +0000 |
commit | 166eb4f53d6fc8478d50ca2d4d9cb449f87c1e8b (patch) | |
tree | 2bc2d1975016b03d4082b59e21af9d9d2412a14a /epan/dissectors/packet-pcep.c | |
parent | b2ba9d676e0ae9779fbfc8edce20e48bede17631 (diff) |
Get rid of an unused variable (set, but not used).
Get rid of extra arguments to expert_add_info_format_text() - as with
any other printf-like routine, if the format string has no % items, you
don't need to pass any additional arguments after that - you don't have
to tack on a BASE_NONE just for the lulz.
svn path=/trunk/; revision=50886
Diffstat (limited to 'epan/dissectors/packet-pcep.c')
-rw-r--r-- | epan/dissectors/packet-pcep.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/epan/dissectors/packet-pcep.c b/epan/dissectors/packet-pcep.c index ce3a87f519..aae29b38d2 100644 --- a/epan/dissectors/packet-pcep.c +++ b/epan/dissectors/packet-pcep.c @@ -989,7 +989,7 @@ dissect_subobj_label_control(proto_tree *pcep_subobj_tree, packet_info *pinfo, break; default: - expert_add_info_format_text(pinfo, ti, &ei_pcep_non_defined_subobject, "Non defined subobject for this object", BASE_NONE); + expert_add_info_format_text(pinfo, ti, &ei_pcep_non_defined_subobject, "Non defined subobject for this object"); break; } } @@ -1054,7 +1054,7 @@ dissect_subobj_unnumb_interfaceID(proto_tree *pcep_subobj_tree, packet_info *pin break; default: - expert_add_info_format_text(pinfo, ti, &ei_pcep_non_defined_subobject, "Non defined subobject for this object", BASE_NONE); + expert_add_info_format_text(pinfo, ti, &ei_pcep_non_defined_subobject, "Non defined subobject for this object"); break; } @@ -1600,7 +1600,7 @@ dissect_pcep_iro_obj(proto_tree *pcep_object_tree, packet_info *pinfo, while(body_obj_len){ if (body_obj_len < 2) { - expert_add_info_format_text(pinfo, pcep_object_tree, &ei_pcep_subobject_bad_length, "Bad IRO object: subobject goes past end of object", BASE_NONE); + expert_add_info_format_text(pinfo, pcep_object_tree, &ei_pcep_subobject_bad_length, "Bad IRO object: subobject goes past end of object"); break; } @@ -1689,7 +1689,6 @@ dissect_pcep_svec_obj(proto_tree *pcep_object_tree, packet_info *pinfo, static void dissect_pcep_notification_obj(proto_tree *pcep_object_tree, packet_info *pinfo, tvbuff_t *tvb, int offset2, int obj_length) { - guint8 flags; guint8 nt; if (obj_length < OBJ_HDR_LEN+NOTIFICATION_OBJ_MIN_LEN) { @@ -1699,7 +1698,6 @@ dissect_pcep_notification_obj(proto_tree *pcep_object_tree, packet_info *pinfo, proto_tree_add_item(pcep_object_tree, hf_pcep_notification_obj_reserved, tvb, offset2, 1, ENC_NA); - flags = tvb_get_guint8(tvb, offset2+1); proto_tree_add_item(pcep_object_tree, hf_pcep_notification_obj_flags, tvb, offset2+1, 1, ENC_NA); nt = tvb_get_guint8(tvb, offset2+2); |