1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

s4:torture/locktest.c - fix "pid_t" printf warning on Solaris

According to "http://www.ibm.com/developerworks/linux/library/l-solar/"
it's generally a 32bit "int" - therefore this cast should fit.
This commit is contained in:
Matthias Dieter Wallnöfer 2010-12-06 11:24:55 +01:00
parent 3b7e2ee5e4
commit 2664a67c86

View File

@ -154,7 +154,7 @@ static struct smbcli_state *connect_one(struct tevent_context *ev,
}
myname = talloc_asprintf(mem_ctx, "lock-%u-%u", getpid(), snum);
myname = talloc_asprintf(mem_ctx, "lock-%d-%d", (int) getpid(), snum);
cli_credentials_set_workstation(servers[snum], myname, CRED_SPECIFIED);
do {