summaryrefslogtreecommitdiff
path: root/src/df.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-12-02 18:55:36 +0000
committerJim Meyering <jim@meyering.net>1992-12-02 18:55:36 +0000
commit57e56eb7ecaf708b248af8faebd972a0ce6f03c1 (patch)
treec3f0b50cb23033a9f68ae740fc6b41549eb46cc7 /src/df.c
parentf6ae65319a4e34bb6aebdc8dd4b12e9df136d690 (diff)
downloadcoreutils-57e56eb7ecaf708b248af8faebd972a0ce6f03c1.tar.xz
Convert static declarations of struct option to use new macros from
getopt.h: no_argument, required_argument, and optional_argument.
Diffstat (limited to 'src/df.c')
-rw-r--r--src/df.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/df.c b/src/df.c
index d6ce9d242..35c069d26 100644
--- a/src/df.c
+++ b/src/df.c
@@ -96,11 +96,11 @@ static struct mount_entry *mount_list;
static struct option const long_options[] =
{
- {"all", 0, &show_all_fs, 1},
- {"inodes", 0, &inode_format, 1},
- {"kilobytes", 0, &kilobyte_blocks, 1},
- {"portability", 0, &posix_format, 1},
- {"type", 1, 0, 't'},
+ {"all", no_argument, &show_all_fs, 1},
+ {"inodes", no_argument, &inode_format, 1},
+ {"kilobytes", no_argument, &kilobyte_blocks, 1},
+ {"portability", no_argument, &posix_format, 1},
+ {"type", required_argument, 0, 't'},
{NULL, 0, NULL, 0}
};