Fixup a bunch of printf-style functions and debugs to use unsigned long when
[kai/samba.git] / source3 / torture / locktest2.c
index 97844b5609ecfbea1ad374ab0862d453079592f4..29b3c7c4b2f156fb75a29f616afb83a9046bb354 100644 (file)
@@ -173,7 +173,7 @@ static struct cli_state *connect_one(char *share)
                }
        }
 
-       slprintf(myname,sizeof(myname), "lock-%u-%u", getpid(), count++);
+       slprintf(myname,sizeof(myname), "lock-%lu-%u", (unsigned long)getpid(), count++);
 
        nt_status = cli_full_connection(&c, myname, server_n, NULL, 0, share, "?????", 
                                        username, lp_workgroup(), password, 0,