aboutsummaryrefslogtreecommitdiff
path: root/coreutils/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/date.c')
-rw-r--r--coreutils/date.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 5e2bcee3b..5ee70f703 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -63,8 +63,9 @@ int date_main(int argc, char **argv)
63 if (!isofmt_arg) { 63 if (!isofmt_arg) {
64 ifmt = 0; /* default is date */ 64 ifmt = 0; /* default is date */
65 } else { 65 } else {
66 static const char * const isoformats[] = 66 static const char *const isoformats[] = {
67 { "date", "hours", "minutes", "seconds" }; 67 "date", "hours", "minutes", "seconds"
68 };
68 69
69 for (ifmt = 0; ifmt < 4; ifmt++) 70 for (ifmt = 0; ifmt < 4; ifmt++)
70 if (!strcmp(isofmt_arg, isoformats[ifmt])) 71 if (!strcmp(isofmt_arg, isoformats[ifmt]))