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 | 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c (patch) | |
tree | 3826a200570b276d514b27fe23ede441df63155d /source/torture | |
parent | 9f82a5766968dc72db5a86ad0afc71e8cffd5be0 (diff) | |
download | samba-2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c.tar.gz samba-2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c.tar.xz samba-2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c.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.
Diffstat (limited to 'source/torture')
-rw-r--r-- | source/torture/locktest.c | 4 | ||||
-rw-r--r-- | source/torture/masktest.c | 4 | ||||
-rw-r--r-- | source/torture/torture.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source/torture/locktest.c b/source/torture/locktest.c index f69f8bf48f3..baf676f6463 100644 --- a/source/torture/locktest.c +++ b/source/torture/locktest.c @@ -174,7 +174,7 @@ static struct cli_state *connect_one(char *share, int snum) server_n = server; - zero_addr(&ss, AF_INET); + zero_addr(&ss); slprintf(myname,sizeof(myname), "lock-%lu-%u", (unsigned long)getpid(), count++); @@ -182,7 +182,7 @@ static struct cli_state *connect_one(char *share, int snum) make_nmb_name(&called , server, 0x20); again: - zero_addr(&ss, AF_INET); + zero_addr(&ss); /* have to open a new connection */ if (!(c=cli_initialise())) { diff --git a/source/torture/masktest.c b/source/torture/masktest.c index 354607bb4e5..62b24dc1d9f 100644 --- a/source/torture/masktest.c +++ b/source/torture/masktest.c @@ -179,13 +179,13 @@ static struct cli_state *connect_one(char *share) server_n = server; - zero_addr(&ss, AF_INET); + zero_addr(&ss); make_nmb_name(&calling, "masktest", 0x0); make_nmb_name(&called , server, 0x20); again: - zero_addr(&ss, AF_INET); + zero_addr(&ss); /* have to open a new connection */ if (!(c=cli_initialise())) { diff --git a/source/torture/torture.c b/source/torture/torture.c index 8eb29d837da..697d87adc7b 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -106,7 +106,7 @@ static struct cli_state *open_nbt_connection(void) make_nmb_name(&calling, myname, 0x0); make_nmb_name(&called , host, 0x20); - zero_addr(&ss, AF_INET); + zero_addr(&ss); if (!(c = cli_initialise())) { printf("Failed initialize cli_struct to connect with %s\n", host); |