diff options
author | Jim Meyering <jim@meyering.net> | 1999-05-05 13:26:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-05-05 13:26:06 +0000 |
commit | 1db78f41bf7457cdf351eccfa5939c98cab8697f (patch) | |
tree | ed6e6fe7594a91a61591e40c255d05a1dd3da04c /src/date.c | |
parent | 7c48860ed84db91c94fe4b6f1ae493211b5cb0bb (diff) | |
download | coreutils-1db78f41bf7457cdf351eccfa5939c98cab8697f.tar.gz coreutils-1db78f41bf7457cdf351eccfa5939c98cab8697f.tar.bz2 coreutils-1db78f41bf7457cdf351eccfa5939c98cab8697f.zip |
(show_date): Change an automatic aggregate initializer
to be a static one. For SunOS4's cc.
Diffstat (limited to 'src/date.c')
-rw-r--r-- | src/date.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c index 8080e99ee..85588dce6 100644 --- a/src/date.c +++ b/src/date.c @@ -477,12 +477,14 @@ show_date (const char *format, time_t when) char *out = NULL; size_t out_length = 0; /* ISO 8601 formats, in local and UTC. See below regarding %z */ - char *iso_format_string[5][2]={ + static char *iso_format_string[5][2] = + { {"", ""}, {"%Y-%m-%d", "%Y-%m-%d"}, {"%Y-%m-%dT%H%z", "%Y-%m-%dT%HZ"}, {"%Y-%m-%dT%H:%M%z", "%Y-%m-%dT%H:%MZ"}, - {"%Y-%m-%dT%H:%M:%S%z", "%Y-%m-%dT%H:%M:%SZ"}}; + {"%Y-%m-%dT%H:%M:%S%z", "%Y-%m-%dT%H:%M:%SZ"} + }; tm = localtime (&when); |