mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
libads: Align integer types
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
258d7d1ca9
commit
f5cd535bf2
@ -2229,8 +2229,9 @@ done:
|
|||||||
*/
|
*/
|
||||||
static void dump_binary(ADS_STRUCT *ads, const char *field, struct berval **values)
|
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++) {
|
for (i=0; values[i]; i++) {
|
||||||
|
ber_len_t j;
|
||||||
printf("%s: ", field);
|
printf("%s: ", field);
|
||||||
for (j=0; j<values[i]->bv_len; j++) {
|
for (j=0; j<values[i]->bv_len; j++) {
|
||||||
printf("%02X", (unsigned char)values[i]->bv_val[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 **values;
|
||||||
char **ret = NULL;
|
char **ret = NULL;
|
||||||
int i;
|
size_t i, converted_size;
|
||||||
size_t converted_size;
|
|
||||||
|
|
||||||
values = ldap_get_values(ads->ldap.ld, msg, field);
|
values = ldap_get_values(ads->ldap.ld, msg, field);
|
||||||
if (!values)
|
if (!values)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user