diff options
-rw-r--r-- | asn1/snmp/packet-snmp-template.c | 3 | ||||
-rw-r--r-- | epan/dissectors/packet-snmp.c | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index 2ff8ba7066..bcdf5d09b1 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -391,7 +391,8 @@ extern int dissect_snmp_VarBind(gboolean implicit_tag _U_, int min_len = 0, max_len = 0; gboolean oid_info_is_ok; const char* oid_string = NULL; - enum { NO_ERROR, WRONG_LENGTH, WRONG_TAG} format_error = NO_ERROR; + enum _error_state { NO_ERROR, WRONG_LENGTH, WRONG_TAG}; + enum _error_state format_error = NO_ERROR; seq_offset = offset; diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 3ae1ed13d4..bf737aa01b 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -493,7 +493,8 @@ extern int dissect_snmp_VarBind(gboolean implicit_tag _U_, int min_len = 0, max_len = 0; gboolean oid_info_is_ok; const char* oid_string = NULL; - enum { NO_ERROR, WRONG_LENGTH, WRONG_TAG} format_error = NO_ERROR; + enum _error_state { NO_ERROR, WRONG_LENGTH, WRONG_TAG}; + enum _error_state format_error = NO_ERROR; seq_offset = offset; @@ -2851,7 +2852,7 @@ static void dissect_SMUX_PDUs_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, pro /*--- End of included file: packet-snmp-fn.c ---*/ -#line 1399 "packet-snmp-template.c" +#line 1400 "packet-snmp-template.c" guint @@ -3627,7 +3628,7 @@ void proto_register_snmp(void) { "snmp.T_operation", HFILL }}, /*--- End of included file: packet-snmp-hfarr.c ---*/ -#line 1910 "packet-snmp-template.c" +#line 1911 "packet-snmp-template.c" }; /* List of subtrees */ @@ -3667,7 +3668,7 @@ void proto_register_snmp(void) { &ett_snmp_RReqPDU, /*--- End of included file: packet-snmp-ettarr.c ---*/ -#line 1926 "packet-snmp-template.c" +#line 1927 "packet-snmp-template.c" }; module_t *snmp_module; static uat_field_t users_fields[] = { |