From: Volker Lendecke Date: Sat, 12 Jan 2019 13:59:58 +0000 (+0100) Subject: libads: Align integer types X-Git-Tag: talloc-2.2.0~297 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5cd535bf22ebff94eb19d903fef78d13d61486a;p=thirdparty%2Fsamba.git libads: Align integer types Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index ae23245fb14..728c821f32d 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -2229,8 +2229,9 @@ done: */ static void dump_binary(ADS_STRUCT *ads, const char *field, struct berval **values) { - int i, j; + size_t i; for (i=0; values[i]; i++) { + ber_len_t j; printf("%s: ", field); for (j=0; jbv_len; j++) { printf("%02X", (unsigned char)values[i]->bv_val[j]); @@ -2540,8 +2541,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res) { char **values; char **ret = NULL; - int i; - size_t converted_size; + size_t i, converted_size; values = ldap_get_values(ads->ldap.ld, msg, field); if (!values)