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.
This commit is contained in:
Bruce Evans 2002-07-11 17:28:29 +00:00
parent 69b9f14163
commit c1f903a031

View File

@ -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