diff options
author | bde <bde@FreeBSD.org> | 2002-07-11 17:28:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-07-11 17:28:29 +0000 |
commit | f340aa750e8a199b50eaf725a3cdb1dfe9975d42 (patch) | |
tree | f143724454b6eb778152ed90d2b5c3c137d71ec7 /bin | |
parent | 9bbf00859f67b38524d8d38de2f0d384dfad8925 (diff) | |
download | FreeBSD-src-f340aa750e8a199b50eaf725a3cdb1dfe9975d42.zip FreeBSD-src-f340aa750e8a199b50eaf725a3cdb1dfe9975d42.tar.gz |
Fixed a printf format error that was fatal on alphas. Adding WFORMAT=0
to the Makefile didn't affect this bug because WFORMAT only controls
higher- level format checking (not the -Wformat that is implicit in
-Wall).
Fixed a nearby printf format error that was benign and 3 nearby style bugs.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ps/print.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index a7c95bd..123aee8 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -487,8 +487,7 @@ vsize(KINFO *k, VARENT *ve) VAR *v; v = ve->var; - (void)printf("%*d", v->width, - (k->ki_p->ki_size/1024)); + (void)printf("%*lu", v->width, (u_long)(k->ki_p->ki_size / 1024)); } void |