]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
authorJim Meyering <jim@meyering.net>
Mon, 27 Jan 2003 13:32:44 +0000 (13:32 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 Jan 2003 13:32:44 +0000 (13:32 +0000)
src/stat.c

index e4f9dd514eb2d54c3e5968884888ce2f6c08b167..61afafb2a94ca68b9edfa533086217258390fe56 100644 (file)
@@ -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");