diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1995-03-19 13:29:28 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1995-03-19 13:29:28 +0000 |
commit | 0fd510b71aa44308681d2e01c9d772f32af24313 (patch) | |
tree | 163891f0a6f18e48e3d38e4d107ad82c2f5c570a /bin/ps/print.c | |
parent | 967a3bf89387d29910172d5d39863b19da1c3685 (diff) | |
download | src-0fd510b71aa44308681d2e01c9d772f32af24313.tar.gz src-0fd510b71aa44308681d2e01c9d772f32af24313.zip |
You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory.
I (Joerg) finished most of Philippe's cleanup. /bin/sh will still
need *allot* of work, however.
Submitted by: charnier@lirmm.fr (Philippe Charnier)
Notes
Notes:
svn path=/head/; revision=7165
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r-- | bin/ps/print.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index cbbe38a9640e..ded44f5955ce 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: print.c,v 1.4 1994/10/02 08:33:30 davidg Exp $ + * $Id: print.c,v 1.5 1994/10/02 14:11:32 ache Exp $ */ #ifndef lint @@ -468,7 +468,7 @@ p_rssize(k, ve) /* doesn't account for text */ #ifndef NEWVM (void)printf("%*d", v->width, pgtok(KI_PROC(k)->p_rssize)); #else - (void)printf("%*d", v->width, pgtok(KI_EPROC(k)->e_vm.vm_rssize)); + (void)printf("%*ld", v->width, pgtok(KI_EPROC(k)->e_vm.vm_rssize)); #endif } @@ -599,7 +599,7 @@ pagein(k, ve) VAR *v; v = ve->var; - (void)printf("%*d", v->width, + (void)printf("%*ld", v->width, k->ki_u.u_valid ? k->ki_u.u_ru.ru_majflt : 0); } @@ -630,7 +630,7 @@ tsize(k, ve) #ifndef NEWVM (void)printf("%*d", v->width, pgtok(KI_EPROC(k)->e_xsize)); #else - (void)printf("%*d", v->width, pgtok(KI_EPROC(k)->e_vm.vm_tsize)); + (void)printf("%*ld", v->width, pgtok(KI_EPROC(k)->e_vm.vm_tsize)); #endif } @@ -664,7 +664,7 @@ printval(bp, v) if (v->flag & LJUST) *cp++ = '-'; *cp++ = '*'; - while (*cp++ = *fcp++); + while ((*cp++ = *fcp++)); switch (v->type) { case CHAR: |