diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-06 11:27:05 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-06 11:28:59 +0100 |
commit | 619a49c4219282bf8776183e76c1b4f0629a6d4c (patch) | |
tree | 0e5a54a243a081cb5c0a1a714a2b3c82267a8199 /lib/util | |
parent | 2664a67c86e817fec2392fa08698813a8800533d (diff) | |
download | samba-619a49c4219282bf8776183e76c1b4f0629a6d4c.tar.gz samba-619a49c4219282bf8776183e76c1b4f0629a6d4c.tar.bz2 samba-619a49c4219282bf8776183e76c1b4f0629a6d4c.zip |
lib/util/fault.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 'lib/util')
-rw-r--r-- | lib/util/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/fault.c b/lib/util/fault.c index 11b31d751e..bbb3190198 100644 --- a/lib/util/fault.c +++ b/lib/util/fault.c @@ -125,7 +125,7 @@ _PUBLIC_ _NORETURN_ void smb_panic(const char *why) char pidstr[20]; char cmdstring[200]; safe_strcpy(cmdstring, panic_action, sizeof(cmdstring)); - snprintf(pidstr, sizeof(pidstr), "%u", getpid()); + snprintf(pidstr, sizeof(pidstr), "%d", (int) getpid()); all_string_sub(cmdstring, "%PID%", pidstr, sizeof(cmdstring)); if (progname) { all_string_sub(cmdstring, "%PROG%", progname, sizeof(cmdstring)); |