diff options
author | Jim Meyering <jim@meyering.net> | 2005-06-30 16:47:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-06-30 16:47:00 +0000 |
commit | 779a89cdb444cf4426eb31ab3d63b2575b29431f (patch) | |
tree | 01064c3b5bacb8c1583af5f5d86e8ba73418c4a1 /src/du.c | |
parent | f2daebf810ff4ee99fb3a2b03cce44e464944234 (diff) | |
download | coreutils-779a89cdb444cf4426eb31ab3d63b2575b29431f.tar.xz |
Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.
Remove a harmless trailing `, 0' from a value list.
Diffstat (limited to 'src/du.c')
-rw-r--r-- | src/du.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -245,6 +245,7 @@ static enum time_type const time_types[] = { time_atime, time_atime, time_atime, time_ctime, time_ctime }; +ARGMATCH_VERIFY (time_args, time_types); /* `full-iso' uses full ISO-style dates and times. `long-iso' uses longer ISO-style time stamps, though shorter than `full-iso'. `iso' uses shorter @@ -260,11 +261,11 @@ static char const *const time_style_args[] = { "full-iso", "long-iso", "iso", NULL }; - static enum time_style const time_style_types[] = { - full_iso_time_style, long_iso_time_style, iso_time_style, 0 + full_iso_time_style, long_iso_time_style, iso_time_style }; +ARGMATCH_VERIFY (time_style_args, time_style_types); void usage (int status) |