diff options
author | Tim Potter <tpot@samba.org> | 2003-07-22 04:31:20 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-07-22 04:31:20 +0000 |
commit | f93528ba007c8800a850678f35f499fb7360fb9a (patch) | |
tree | b3594e23ca8dd5afec18590cfce291ba56855fc4 /source/web | |
parent | afed2cbbcc07de9e453156972250f5f9d22e8e83 (diff) | |
download | samba-f93528ba007c8800a850678f35f499fb7360fb9a.tar.gz samba-f93528ba007c8800a850678f35f499fb7360fb9a.tar.xz samba-f93528ba007c8800a850678f35f499fb7360fb9a.zip |
Fixup a bunch of printf-style functions and debugs to use unsigned long when
displaying pid_t, uid_t and gid_t values. This removes a whole lot of warnings
on some of the 64-bit build farm machines as well as help us out when 64-bit
uid/gid/pid values come along.
Diffstat (limited to 'source/web')
-rw-r--r-- | source/web/statuspage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/web/statuspage.c b/source/web/statuspage.c index 44461232b81..c579e8f1123 100644 --- a/source/web/statuspage.c +++ b/source/web/statuspage.c @@ -93,7 +93,7 @@ static char *mapPid2Machine (pid_t pid) } /* PID not in list or machine name NULL? return pid as string */ - snprintf (pidbuf, sizeof (pidbuf) - 1, "%d", pid); + snprintf (pidbuf, sizeof (pidbuf) - 1, "%lu", (unsigned long)pid); return pidbuf; } |