diff options
Diffstat (limited to 'source/utils/locktest2.c')
-rw-r--r-- | source/utils/locktest2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/utils/locktest2.c b/source/utils/locktest2.c index 91083bc3ec4..ac16055c0f1 100644 --- a/source/utils/locktest2.c +++ b/source/utils/locktest2.c @@ -157,7 +157,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; @@ -169,7 +168,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++); @@ -177,7 +176,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_set_port(c, 139) == 0) || |