summaryrefslogtreecommitdiff
path: root/source3/torture/locktest.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-27 20:29:36 -0700
committerJeremy Allison <jra@samba.org>2007-10-27 20:29:36 -0700
commitd4307679b95088d05f0abad440de5e961ee965df (patch)
tree124a0602838845ac10494bcfa2b8014b115aefee /source3/torture/locktest.c
parentc7a7c08db5e998c8e698a11d3ec209b2744763da (diff)
downloadsamba-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/torture/locktest.c')
-rw-r--r--source3/torture/locktest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c
index f69f8bf48f..baf676f646 100644
--- a/source3/torture/locktest.c
+++ b/source3/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())) {