diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-29 22:51:00 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-29 22:51:00 +0000 |
commit | 32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca (patch) | |
tree | 70ffff0b7f48b35a70b8b04253abe9118ded6026 /coreutils/date.c | |
parent | 2014b85b6cade935b303d4cd10a20d21efd42aad (diff) | |
download | busybox-w32-32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca.tar.gz busybox-w32-32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca.tar.bz2 busybox-w32-32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca.zip |
preparatory patch for -Wwrite-strings #1
git-svn-id: svn://busybox.net/trunk/busybox@17653 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/date.c')
-rw-r--r-- | coreutils/date.c | 6 |
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) | |||
41 | static void maybe_set_utc(int opt) | 41 | static 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 | ||
47 | int date_main(int argc, char **argv) | 47 | int 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 */ |