diff options
author | Jim Meyering <jim@meyering.net> | 1992-12-02 18:55:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-12-02 18:55:36 +0000 |
commit | 57e56eb7ecaf708b248af8faebd972a0ce6f03c1 (patch) | |
tree | c3f0b50cb23033a9f68ae740fc6b41549eb46cc7 /src/df.c | |
parent | f6ae65319a4e34bb6aebdc8dd4b12e9df136d690 (diff) | |
download | coreutils-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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} }; |