diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-27 20:29:36 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-27 20:29:36 -0700 |
commit | d4307679b95088d05f0abad440de5e961ee965df (patch) | |
tree | 124a0602838845ac10494bcfa2b8014b115aefee /source3/utils | |
parent | c7a7c08db5e998c8e698a11d3ec209b2744763da (diff) | |
download | samba-d4307679b95088d05f0abad440de5e961ee965df.tar.gz samba-d4307679b95088d05f0abad440de5e961ee965df.tar.bz2 samba-d4307679b95088d05f0abad440de5e961ee965df.zip |
Change all occurrences of zero_addr(&ss,AF_INET) to
zero_addr(&ss). All current uses were always of the
AF_INET form, so simplify the call. If in the future
we need to zero an addr to AF_INET6 this can be
done separately.
Jeremy.
(This used to be commit 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net.c | 2 | ||||
-rw-r--r-- | source3/utils/smbcacls.c | 2 | ||||
-rw-r--r-- | source3/utils/smbcquotas.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index fb82e76591..2390e5842c 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -1012,7 +1012,7 @@ static struct functable net_func[] = { TALLOC_CTX *frame = talloc_stackframe(); - zero_addr(&opt_dest_ip, AF_INET); + zero_addr(&opt_dest_ip); load_case_tables(); diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index d5bf9b96e6..9af2294f54 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -769,7 +769,7 @@ static struct cli_state *connect_one(const char *share) struct cli_state *c; struct sockaddr_storage ss; NTSTATUS nt_status; - zero_addr(&ss, AF_INET); + zero_addr(&ss); if (!cmdline_auth_info.got_pass) { char *pass = getpass("Password: "); diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index f185caa50f..ae793c28f9 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -361,7 +361,7 @@ static struct cli_state *connect_one(const char *share) struct cli_state *c; struct sockaddr_storage ss; NTSTATUS nt_status; - zero_addr(&ss, AF_INET); + zero_addr(&ss); if (!cmdline_auth_info.got_pass) { char *pass = getpass("Password: "); |