summaryrefslogtreecommitdiff
path: root/source/torture/locktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/torture/locktest.c')
-rw-r--r--source/torture/locktest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/torture/locktest.c b/source/torture/locktest.c
index ccff2b2624a..8606c9e38a9 100644
--- a/source/torture/locktest.c
+++ b/source/torture/locktest.c
@@ -147,7 +147,6 @@ struct cli_state *connect_one(char *share)
char *server_n;
fstring server;
struct in_addr ip;
- extern struct in_addr ipzero;
fstring myname;
static int count;
@@ -159,7 +158,7 @@ struct cli_state *connect_one(char *share)
server_n = server;
- ip = ipzero;
+ zero_ip(&ip);
slprintf(myname,sizeof(myname), "lock-%u-%u", getpid(), count++);
@@ -167,7 +166,7 @@ struct cli_state *connect_one(char *share)
make_nmb_name(&called , server, 0x20);
again:
- ip = ipzero;
+ zero_ip(&ip);
/* have to open a new connection */
if (!(c=cli_initialise(NULL)) || !cli_connect(c, server_n, &ip)) {