diff options
author | 1997-06-30 23:47:44 +0000 | |
---|---|---|
committer | 1997-06-30 23:47:44 +0000 | |
commit | 3c55b184ae74d527eeaf1419bf3ff01c42a49be2 (patch) | |
tree | e7a732d51bc28eda95315c8213a4dce5dba7f7f9 | |
parent | back out last two changes (diff) | |
download | wireguard-openbsd-3c55b184ae74d527eeaf1419bf3ff01c42a49be2.tar.xz wireguard-openbsd-3c55b184ae74d527eeaf1419bf3ff01c42a49be2.zip |
Fix printf format when listing inode number and #blocks to
unsigned and quad respectively to correspond to actual types.
Half from NetBSD (jtc).
-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, |