aboutsummaryrefslogtreecommitdiff
path: root/coreutils/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/date.c')
-rw-r--r--coreutils/date.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index a6690e8bd..034a18b98 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -41,7 +41,7 @@ static void xputenv(char *s)
41static void maybe_set_utc(int opt) 41static void maybe_set_utc(int opt)
42{ 42{
43 if (opt & DATE_OPT_UTC) 43 if (opt & DATE_OPT_UTC)
44 xputenv("TZ=UTC0"); 44 xputenv((char*)"TZ=UTC0");
45} 45}
46 46
47int date_main(int argc, char **argv) 47int date_main(int argc, char **argv)
@@ -218,7 +218,7 @@ format_utc:
218 i = 22; 218 i = 22;
219 goto format_utc; 219 goto format_utc;
220 } else /* default case */ 220 } else /* default case */
221 date_fmt = "%a %b %e %H:%M:%S %Z %Y"; 221 date_fmt = (char*)"%a %b %e %H:%M:%S %Z %Y";
222 } 222 }
223 223
224 if (*date_fmt == '\0') { 224 if (*date_fmt == '\0') {
@@ -228,7 +228,7 @@ format_utc:
228 /* Handle special conversions */ 228 /* Handle special conversions */
229 229
230 if (strncmp(date_fmt, "%f", 2) == 0) { 230 if (strncmp(date_fmt, "%f", 2) == 0) {
231 date_fmt = "%Y.%m.%d-%H:%M:%S"; 231 date_fmt = (char*)"%Y.%m.%d-%H:%M:%S";
232 } 232 }
233 233
234 /* Generate output string */ 234 /* Generate output string */