diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-07-11 20:26:24 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-07-11 20:26:24 +0000 |
commit | 4248fa670a19074bfb3cb54cb3ff8351c2c971ff (patch) | |
tree | 5adb03543ab6f4fe234c844a430018fd99570f4e /epan | |
parent | 9ee1981c7fb1f0c331e21981bca0966bec53953f (diff) |
Explicit value_string array size specifier not required.
svn path=/trunk/; revision=43669
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-cip.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-cip.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-cip.c b/epan/dissectors/packet-cip.c index 07746811d6..0064e3fb87 100644 --- a/epan/dissectors/packet-cip.c +++ b/epan/dissectors/packet-cip.c @@ -478,7 +478,7 @@ static const value_string cip_sc_vals_cco[] = { }; /* Translate function to string - CIP Request/Response */ -const value_string cip_sc_rr[3] = { +const value_string cip_sc_rr[] = { { 0, "Request" }, { 1, "Response" }, @@ -493,7 +493,7 @@ static const value_string cip_com_bit_vals[] = { { 0, NULL } }; -const value_string cip_reset_type_vals[4] = { +const value_string cip_reset_type_vals[] = { { 0, "Cycle Power" }, { 1, "Factory Default" }, { 2, "Keep Communication Parameters" }, diff --git a/epan/dissectors/packet-cip.h b/epan/dissectors/packet-cip.h index ae5e74f29b..c2c86f591c 100644 --- a/epan/dissectors/packet-cip.h +++ b/epan/dissectors/packet-cip.h @@ -315,8 +315,8 @@ extern void dissect_cip_date_and_time(proto_tree *tree, tvbuff_t *tvb, int offse ** Exported variables */ extern dissector_table_t subdissector_class_table; -extern const value_string cip_sc_rr[3]; -extern const value_string cip_reset_type_vals[4]; +extern const value_string cip_sc_rr[]; +extern const value_string cip_reset_type_vals[]; extern value_string_ext cip_gs_vals_ext; extern value_string_ext cip_cm_ext_st_vals_ext; extern value_string_ext cip_vendor_vals_ext; |