diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-30 23:47:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-06-30 23:47:45 +0000 |
commit | d49b455c2791bed0d23046f0350db58b906ff660 (patch) | |
tree | 4e0231c5c94b358ae582bbb641940f1f8ae28f5b /usr.bin | |
parent | 9042a37804017a1161129e24b24708985121bd63 (diff) |
Fix printf format when listing inode number and #blocks to
unsigned and quad respectively to correspond to actual types.
Half from NetBSD (jtc).
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/find/ls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c index 3504d4a390e..083a7c6eb24 100644 --- a/usr.bin/find/ls.c +++ b/usr.bin/find/ls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ls.c,v 1.3 1997/06/17 20:58:45 kstailey Exp $ */ +/* $OpenBSD: ls.c,v 1.4 1997/06/30 23:47:44 millert Exp $ */ /* * Copyright (c) 1989, 1993 @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)ls.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: ls.c,v 1.3 1997/06/17 20:58:45 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: ls.c,v 1.4 1997/06/30 23:47:44 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -63,7 +63,7 @@ printlong(name, accpath, sb) { char modep[15], *user_from_uid(), *group_from_gid(); - (void)printf("%6lu %4ld ", sb->st_ino, sb->st_blocks); + (void)printf("%6u %4qd ", sb->st_ino, sb->st_blocks); (void)strmode(sb->st_mode, modep); (void)printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, UT_NAMESIZE, user_from_uid(sb->st_uid, 0), UT_NAMESIZE, |