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/du.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/du.c')
-rw-r--r-- | src/du.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -157,16 +157,16 @@ static int exit_status; static struct option const long_options[] = { - {"all", 0, &opt_all, 1}, - {"bytes", 0, NULL, 'b'}, - {"count-links", 0, &opt_count_all, 1}, - {"dereference", 0, NULL, 'L'}, - {"dereference-args", 0, &opt_dereference_arguments, 1}, - {"kilobytes", 0, NULL, 'k'}, - {"one-file-system", 0, &opt_one_file_system, 1}, - {"separate-dirs", 0, &opt_separate_dirs, 1}, - {"summarize", 0, &opt_summarize_only, 1}, - {"total", 0, &opt_combined_arguments, 1}, + {"all", no_argument, &opt_all, 1}, + {"bytes", no_argument, NULL, 'b'}, + {"count-links", no_argument, &opt_count_all, 1}, + {"dereference", no_argument, NULL, 'L'}, + {"dereference-args", no_argument, &opt_dereference_arguments, 1}, + {"kilobytes", no_argument, NULL, 'k'}, + {"one-file-system", no_argument, &opt_one_file_system, 1}, + {"separate-dirs", no_argument, &opt_separate_dirs, 1}, + {"summarize", no_argument, &opt_summarize_only, 1}, + {"total", no_argument, &opt_combined_arguments, 1}, {NULL, 0, NULL, 0} }; |