summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-27 13:32:44 +0000
committerJim Meyering <jim@meyering.net>2003-01-27 13:32:44 +0000
commit88a5f079b459f91627c19e2d1150dca345b18f95 (patch)
treeee67d086aeafd00e10056234fd3ae23dffbe61be /src/stat.c
parent2a223204306e466d7fb0ae417f4cb0c752119aa6 (diff)
downloadcoreutils-88a5f079b459f91627c19e2d1150dca345b18f95.tar.xz
(print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stat.c b/src/stat.c
index e4f9dd514..61afafb2a 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1,5 +1,5 @@
/* stat.c -- display file or filesystem status
- Copyright (C) 2001, 2002 Free Software Foundation.
+ Copyright (C) 2001, 2002, 2003 Free Software Foundation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -531,7 +531,7 @@ print_stat (char *pformat, char m, char const *filename, void const *data)
break;
case 'b':
strcat (pformat, "u");
- printf (pformat, (unsigned int) statbuf->st_blocks);
+ printf (pformat, (unsigned int) ST_NBLOCKS (*statbuf));
break;
case 'o':
strcat (pformat, "d");