summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_status.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-10 07:55:48 +0000
committerphk <phk@FreeBSD.org>1994-10-10 07:55:48 +0000
commitc0f48e68d284829328ce49fd16a2b2eb6467434b (patch)
tree7554aaa733a10acfa4773a846448e6f66d2d6ee3 /sys/miscfs/procfs/procfs_status.c
parent03a02ed1752db367223cc17d6465dcb08f262939 (diff)
downloadFreeBSD-src-c0f48e68d284829328ce49fd16a2b2eb6467434b.zip
FreeBSD-src-c0f48e68d284829328ce49fd16a2b2eb6467434b.tar.gz
Cosmetics. reduce the noise from gcc -Wall.
Diffstat (limited to 'sys/miscfs/procfs/procfs_status.c')
-rw-r--r--sys/miscfs/procfs/procfs_status.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c
index 1792dfd..c74cde9 100644
--- a/sys/miscfs/procfs/procfs_status.c
+++ b/sys/miscfs/procfs/procfs_status.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_status.c 8.3 (Berkeley) 2/17/94
*
- * $Id: procfs_status.c,v 1.1.1.1 1994/05/24 10:05:08 rgrimes Exp $
+ * $Id: procfs_status.c,v 1.2 1994/08/02 07:45:20 davidg Exp $
*/
#include <sys/param.h>
@@ -104,7 +104,7 @@ procfs_dostatus(curp, p, pfs, uio)
ps += sprintf(ps, "noflags");
if (p->p_flag & P_INMEM)
- ps += sprintf(ps, " %d,%d",
+ ps += sprintf(ps, " %ld,%ld",
p->p_stats->p_start.tv_sec,
p->p_stats->p_start.tv_usec);
else
@@ -114,7 +114,7 @@ procfs_dostatus(curp, p, pfs, uio)
struct timeval ut, st;
calcru(p, &ut, &st, (void *) 0);
- ps += sprintf(ps, " %d,%d %d,%d",
+ ps += sprintf(ps, " %ld,%ld %ld,%ld",
ut.tv_sec,
ut.tv_usec,
st.tv_sec,
@@ -126,9 +126,9 @@ procfs_dostatus(curp, p, pfs, uio)
cr = p->p_ucred;
- ps += sprintf(ps, " %d", cr->cr_uid, cr->cr_gid);
+ ps += sprintf(ps, " %ld %ld", cr->cr_uid, cr->cr_gid);
for (i = 0; i < cr->cr_ngroups; i++)
- ps += sprintf(ps, ",%d", cr->cr_groups[i]);
+ ps += sprintf(ps, ",%ld", cr->cr_groups[i]);
ps += sprintf(ps, "\n");
xlen = ps - psbuf;
OpenPOWER on IntegriCloud