summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes <michael@fam-meskes.de>2009-01-02 16:40:52 +0100
committerJim Meyering <meyering@redhat.com>2009-01-03 09:42:39 +0100
commit1ead0858263428d36a193f400fed24bf9635268a (patch)
treee8e8797354d16a54a708250ccc6b4674cd77b063 /src
parent695682d51488309bac2731169596297b06b0a2f8 (diff)
downloadcoreutils-1ead0858263428d36a193f400fed24bf9635268a.tar.xz
stat: print file-system total inode count (%c) as an unsigned number
* src/stat.c (print_statfs): Print statfs.f_files, the total inode count of a file system, as an unsigned number.
Diffstat (limited to 'src')
-rw-r--r--src/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stat.c b/src/stat.c
index f5bf8cdee..feea4b793 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1,5 +1,5 @@
/* stat.c -- display file or file system status
- Copyright (C) 2001-2008 Free Software Foundation, Inc.
+ Copyright (C) 2001-2009 Free Software Foundation, Inc.
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
@@ -541,7 +541,7 @@ print_statfs (char *pformat, size_t prefix_len, char m, char const *filename,
}
break;
case 'c':
- out_int (pformat, prefix_len, statfsbuf->f_files);
+ out_uint (pformat, prefix_len, statfsbuf->f_files);
break;
case 'd':
out_int (pformat, prefix_len, statfsbuf->f_ffree);