git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b7e2ee
)
s4:torture/locktest.c - fix "pid_t" printf warning on Solaris
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Mon, 6 Dec 2010 10:24:55 +0000
(11:24 +0100)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Mon, 6 Dec 2010 10:28:59 +0000
(11:28 +0100)
According to "http://www.ibm.com/developerworks/linux/library/l-solar/"
it's generally a 32bit "int" - therefore this cast should fit.
source4/torture/locktest.c
patch
|
blob
|
history
diff --git
a/source4/torture/locktest.c
b/source4/torture/locktest.c
index aecf71bf9cc2b3d1c0b12b6c3246c901360d6089..445a626e7beaac116462782b4b68c34ebb7389fe 100644
(file)
--- 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 {