diff options
author | obrien <obrien@FreeBSD.org> | 2002-04-15 19:27:41 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-04-15 19:27:41 +0000 |
commit | 37b32352481728a8159afc1804e450d4937319ef (patch) | |
tree | 5e46aed8da5b57de5ddd575f07b1226e86bb3bf8 /usr.bin/find/ls.c | |
parent | 45c5bb7593086008b5aa0bc0233767688c1af148 (diff) | |
download | FreeBSD-src-37b32352481728a8159afc1804e450d4937319ef.zip FreeBSD-src-37b32352481728a8159afc1804e450d4937319ef.tar.gz |
Fix to WARNS=2 level.
Tested by: AXP gcc 3.1
Diffstat (limited to 'usr.bin/find/ls.c')
-rw-r--r-- | usr.bin/find/ls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c index bb7b97e..15179fb 100644 --- a/usr.bin/find/ls.c +++ b/usr.bin/find/ls.c @@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/stat.h> +#include <inttypes.h> #include <err.h> #include <errno.h> #include <fts.h> @@ -69,7 +70,7 @@ printlong(name, accpath, sb) { char modep[15]; - (void)printf("%6lu %4qd ", (u_long) sb->st_ino, sb->st_blocks); + (void)printf("%6lu %4"PRId64" ", (u_long) 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, @@ -79,7 +80,7 @@ printlong(name, accpath, sb) (void)printf("%3d, %3d ", major(sb->st_rdev), minor(sb->st_rdev)); else - (void)printf("%8qd ", sb->st_size); + (void)printf("%8"PRId64" ", sb->st_size); printtime(sb->st_mtime); (void)printf("%s", name); if (S_ISLNK(sb->st_mode)) |