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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/torture/locktest.c b/source/torture/locktest.c
index 63b9590dd61..86379bf3b6d 100644
--- a/source/torture/locktest.c
+++ b/source/torture/locktest.c
@@ -157,7 +157,7 @@ static struct cli_state *connect_one(char *share, int snum)
zero_ip(&ip);
- slprintf(myname,sizeof(myname), "lock-%u-%u", getpid(), count++);
+ slprintf(myname,sizeof(myname), "lock-%lu-%u", (unsigned long)getpid(), count++);
make_nmb_name(&calling, myname, 0x0);
make_nmb_name(&called , server, 0x20);