summaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-30 16:47:54 +0000
committerJim Meyering <jim@meyering.net>2005-06-30 16:47:54 +0000
commit8665927afc9cb27a8ec0d705c4ce84cfaacd2b09 (patch)
tree93aae36ca2d6ec81030377f7b2631d0a78b9bf4e /src/date.c
parent7078d7a5b8d3eede01610108c30ae149c54ae02d (diff)
downloadcoreutils-8665927afc9cb27a8ec0d705c4ce84cfaacd2b09.tar.xz
Add uses of ARGMATCH_VERIFY to ensure that
corresponding option string and value arrays are consistent.
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c
index 9bc24b4bc..8eafd090d 100644
--- a/src/date.c
+++ b/src/date.c
@@ -62,12 +62,12 @@ static char const *const time_spec_string[] =
{
"date", "hours", "minutes", "seconds", "ns", NULL
};
-
static enum Time_spec const time_spec[] =
{
TIME_SPEC_DATE, TIME_SPEC_HOURS, TIME_SPEC_MINUTES, TIME_SPEC_SECONDS,
TIME_SPEC_NS
};
+ARGMATCH_VERIFY (time_spec_string, time_spec);
/* The name this program was run with, for error messages. */
char *program_name;