projects
/
xfstests-dev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1be42c
)
Rework last big-sized-inums fix, fix a couple of warnings on 64bit platforms
author
fsgqa
<fsgqa>
Mon, 8 Sep 2003 23:16:10 +0000
(23:16 +0000)
committer
fsgqa
<fsgqa>
Mon, 8 Sep 2003 23:16:10 +0000
(23:16 +0000)
src/lstat64.c
patch
|
blob
|
history
diff --git
a/src/lstat64.c
b/src/lstat64.c
index 5eb306e82c7ac8be34ffb35f6ab4507806513bf8..6a03bf303d4950e6d999be2ea8acd2cbe70cfdd6 100644
(file)
--- a/
src/lstat64.c
+++ b/
src/lstat64.c
@@
-64,7
+64,7
@@
main(int argc, char **argv)
{
struct stat64 sbuf;
char mode[10];
{
struct stat64 sbuf;
char mode[10];
- int i
, c
;
+ int i;
time(&timebuf);
time(&timebuf);
@@
-76,7
+76,7
@@
main(int argc, char **argv)
}
printf(" File: \"%s\"\n", argv[i]);
}
printf(" File: \"%s\"\n", argv[i]);
- printf(" Size: %-10llu", sbuf.st_size);
+ printf(" Size: %-10llu",
(unsigned long long)
sbuf.st_size);
strcpy(mode,"----------");
if (sbuf.st_mode & (S_IEXEC>>6))
strcpy(mode,"----------");
if (sbuf.st_mode & (S_IEXEC>>6))
@@
-144,10
+144,8
@@
main(int argc, char **argv)
printf(" Gid: (%d)\n", sbuf.st_gid);
printf("Device: %2d,%-2d", major(sbuf.st_dev),
minor(sbuf.st_dev));
printf(" Gid: (%d)\n", sbuf.st_gid);
printf("Device: %2d,%-2d", major(sbuf.st_dev),
minor(sbuf.st_dev));
- c = printf(" Inode: %-10llu", (unsigned long long)sbuf.st_ino);
- if (c >= 10)
- putchar(' ');
- printf("Links: %-5d", sbuf.st_nlink);
+ printf(" Inode: %-9llu", (unsigned long long)sbuf.st_ino);
+ printf(" Links: %-5ld", (long)sbuf.st_nlink);
if ( ((sbuf.st_mode & S_IFMT) == S_IFCHR)
|| ((sbuf.st_mode & S_IFMT) == S_IFBLK) )
if ( ((sbuf.st_mode & S_IFMT) == S_IFCHR)
|| ((sbuf.st_mode & S_IFMT) == S_IFBLK) )