diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ls/print.c | 4 | ||||
-rw-r--r-- | bin/ps/print.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c index 6810e92a169..959282c61a2 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.37 2016/08/16 16:09:24 krw Exp $ */ +/* $OpenBSD: print.c,v 1.38 2019/02/05 02:17:32 deraadt Exp $ */ /* $NetBSD: print.c,v 1.15 1996/12/11 03:25:39 thorpej Exp $ */ /* @@ -109,7 +109,7 @@ printlong(DISPLAY *dp) if (f_flags) (void)printf("%-*s ", dp->s_flags, np->flags); if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode)) - (void)printf("%3d, %3d ", + (void)printf("%3u, %3u ", major(sp->st_rdev), minor(sp->st_rdev)); else if (dp->bcfile) (void)printf("%*s%*lld ", diff --git a/bin/ps/print.c b/bin/ps/print.c index 14e8ad24de4..b73653f9f41 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.70 2018/06/12 01:58:05 deraadt Exp $ */ +/* $OpenBSD: print.c,v 1.71 2019/02/05 02:17:32 deraadt Exp $ */ /* $NetBSD: print.c,v 1.27 1995/09/29 21:58:12 cgd Exp $ */ /*- @@ -352,7 +352,7 @@ tdev(const struct kinfo_proc *kp, VARENT *ve) (void)printf("%*s", v->width, "??"); else { (void)snprintf(buff, sizeof(buff), - "%d/%d", major(dev), minor(dev)); + "%u/%u", major(dev), minor(dev)); (void)printf("%*s", v->width, buff); } } |