diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-02-17 17:21:25 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-02-18 01:23:42 +0000 |
commit | 909d891b267852d386f0e47cb4ccd818b7f99176 (patch) | |
tree | e3035c13d3b6bf8fec8bfd793d0e8d65d5eea500 /epan/dissectors/packet-ldap.c | |
parent | b10bad126a7bb605216badebce6f4ba30eef0106 (diff) |
Some additional UAT update callback changes.
I guess the signature mismatch must just be a warning with Clang; it's
not with MSVC.
Change-Id: Ic1f4cb88471f7e13019e891f111978310dfada73
Reviewed-on: https://code.wireshark.org/review/7225
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-ldap.c')
-rw-r--r-- | epan/dissectors/packet-ldap.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c index 49ae9276fe..cac8af7414 100644 --- a/epan/dissectors/packet-ldap.c +++ b/epan/dissectors/packet-ldap.c @@ -620,7 +620,7 @@ static guint num_attribute_types = 0; static GHashTable* attribute_types_hash = NULL; -static void +static gboolean attribute_types_update_cb(void *r, char **err) { attribute_type_t *rec = (attribute_type_t *)r; @@ -628,13 +628,13 @@ attribute_types_update_cb(void *r, char **err) if (rec->attribute_type == NULL) { *err = g_strdup("Attribute type can't be empty"); - return; + return FALSE; } g_strstrip(rec->attribute_type); if (rec->attribute_type[0] == 0) { *err = g_strdup("Attribute type can't be empty"); - return; + return FALSE; } /* Check for invalid characters (to avoid asserting out when @@ -643,10 +643,11 @@ attribute_types_update_cb(void *r, char **err) c = proto_check_field_name(rec->attribute_type); if (c) { *err = g_strdup_printf("Attribute type can't contain '%c'", c); - return; + return FALSE; } *err = NULL; + return TRUE; } static void * @@ -3806,7 +3807,7 @@ static int dissect_PasswordPolicyResponseValue_PDU(tvbuff_t *tvb _U_, packet_inf /*--- End of included file: packet-ldap-fn.c ---*/ -#line 882 "../../asn1/ldap/packet-ldap-template.c" +#line 883 "../../asn1/ldap/packet-ldap-template.c" static int dissect_LDAPMessage_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, ldap_conv_info_t *ldap_info) { int offset = 0; @@ -5699,7 +5700,7 @@ void proto_register_ldap(void) { NULL, HFILL }}, /*--- End of included file: packet-ldap-hfarr.c ---*/ -#line 2206 "../../asn1/ldap/packet-ldap-template.c" +#line 2207 "../../asn1/ldap/packet-ldap-template.c" }; /* List of subtrees */ @@ -5773,7 +5774,7 @@ void proto_register_ldap(void) { &ett_ldap_T_warning, /*--- End of included file: packet-ldap-ettarr.c ---*/ -#line 2220 "../../asn1/ldap/packet-ldap-template.c" +#line 2221 "../../asn1/ldap/packet-ldap-template.c" }; /* UAT for header fields */ static uat_field_t custom_attribute_types_uat_fields[] = { @@ -5939,7 +5940,7 @@ proto_reg_handoff_ldap(void) /*--- End of included file: packet-ldap-dis-tab.c ---*/ -#line 2369 "../../asn1/ldap/packet-ldap-template.c" +#line 2370 "../../asn1/ldap/packet-ldap-template.c" } |