summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-06 11:24:55 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-06 11:28:59 +0100
commit2664a67c86e817fec2392fa08698813a8800533d (patch)
tree0ede01f321b110adfafbd2a2e2ac94d1ebb8cce7 /source4/torture
parent3b7e2ee5e4b6e15ddd24f781d389b9dbe88dc887 (diff)
downloadsamba-2664a67c86e817fec2392fa08698813a8800533d.tar.gz
samba-2664a67c86e817fec2392fa08698813a8800533d.tar.bz2
samba-2664a67c86e817fec2392fa08698813a8800533d.zip
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.
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/locktest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c
index aecf71bf9c..445a626e7b 100644
--- a/source4/torture/locktest.c
+++ b/source4/torture/locktest.c
@@ -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 {