mirror of
https://github.com/samba-team/samba.git
synced 2025-09-17 05:44:20 +03:00
s3: libsmb: Convert the WINS and broadcast name functions to return size_t * num addresses.
Have to do both at once as they are intimately related. The uglyness inside internal_resolve_name() will go away once all the resove_XXX() functions return size_t values. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
committed by
Noel Power
parent
dbab4626ef
commit
af6aaf6243
@@ -560,9 +560,9 @@ SMBC_opendir_ctx(SMBCCTX *context,
|
||||
|
||||
if (server[0] == (char)0) {
|
||||
|
||||
int i;
|
||||
int count;
|
||||
int max_lmb_count;
|
||||
size_t i;
|
||||
size_t count = 0;
|
||||
size_t max_lmb_count;
|
||||
struct sockaddr_storage *ip_list;
|
||||
struct sockaddr_storage server_addr;
|
||||
struct user_auth_info *u_info;
|
||||
@@ -649,7 +649,7 @@ SMBC_opendir_ctx(SMBCCTX *context,
|
||||
struct cli_state *cli = NULL;
|
||||
|
||||
print_sockaddr(addr, sizeof(addr), &ip_list[i]);
|
||||
DEBUG(99, ("Found master browser %d of %d: %s\n",
|
||||
DEBUG(99, ("Found master browser %zu of %zu: %s\n",
|
||||
i+1, MAX(count, max_lmb_count),
|
||||
addr));
|
||||
|
||||
|
Reference in New Issue
Block a user