summaryrefslogtreecommitdiff
path: root/src/df.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-19 00:00:06 +0000
committerJim Meyering <jim@meyering.net>1993-10-19 00:00:06 +0000
commit723d3d528db8b3abb05357bf5a7af7173c1636e7 (patch)
tree23fc7ea7e6b0721e7705f60a7c14bd9dcafd5eca /src/df.c
parent712ac6d5a0122dbcbc89669143580de1326f1d46 (diff)
downloadcoreutils-723d3d528db8b3abb05357bf5a7af7173c1636e7.tar.xz
merge with 3.8.4k
Diffstat (limited to 'src/df.c')
-rw-r--r--src/df.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/df.c b/src/df.c
index f4a2e7646..c73a739fa 100644
--- a/src/df.c
+++ b/src/df.c
@@ -477,13 +477,13 @@ static void
usage (status)
int status;
{
- fprintf (status == 0 ? stdout : stderr, "\
-Usage: %s [OPTION] [PATH]...\n\
-",
- program_name);
-
- if (status == 0)
- printf ("\
+ if (status != 0)
+ fprintf (stderr, "Try `%s --help' for more information.\n",
+ program_name);
+ else
+ {
+ printf ("Usage: %s [OPTION] [PATH]...\n", program_name);
+ printf ("\
\n\
-a, --all include filesystems having 0 blocks\n\
-i, --inodes list inode information instead of block usage\n\
@@ -496,10 +496,6 @@ Usage: %s [OPTION] [PATH]...\n\
--version output version information and exit\n\
\n\
If no PATHs are given, list all currently mounted filesystems.\n");
-
- else
- fprintf (stderr, "Try `%s --help' for more information.\n",
- program_name);
-
+ }
exit (status);
}