diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-06 11:24:55 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-06 11:28:59 +0100 |
commit | 2664a67c86e817fec2392fa08698813a8800533d (patch) | |
tree | 0ede01f321b110adfafbd2a2e2ac94d1ebb8cce7 /source4 | |
parent | 3b7e2ee5e4b6e15ddd24f781d389b9dbe88dc887 (diff) | |
download | samba-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')
-rw-r--r-- | source4/torture/locktest.c | 2 |
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 { |