diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-20 23:25:04 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-20 23:25:04 +0000 |
commit | 3d90be2efe6f70cef96048c6f3dfc71402a9bae4 (patch) | |
tree | 110863a6199eb1f69022bf25cc88d07baa39183b | |
parent | b32502da83ff7e7241a4584c88f3a35859dfeeda (diff) | |
download | busybox-w32-3d90be2efe6f70cef96048c6f3dfc71402a9bae4.tar.gz busybox-w32-3d90be2efe6f70cef96048c6f3dfc71402a9bae4.tar.bz2 busybox-w32-3d90be2efe6f70cef96048c6f3dfc71402a9bae4.zip |
fix compile breakage
-rw-r--r-- | coreutils/date.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index dfc8b2f40..91bd54a55 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -32,16 +32,10 @@ | |||
32 | #define DATE_OPT_TIMESPEC 0x20 | 32 | #define DATE_OPT_TIMESPEC 0x20 |
33 | #define DATE_OPT_HINT 0x40 | 33 | #define DATE_OPT_HINT 0x40 |
34 | 34 | ||
35 | static void xputenv(char *s) | ||
36 | { | ||
37 | if (putenv(s) != 0) | ||
38 | bb_error_msg_and_die(bb_msg_memory_exhausted); | ||
39 | } | ||
40 | |||
41 | static void maybe_set_utc(int opt) | 35 | static void maybe_set_utc(int opt) |
42 | { | 36 | { |
43 | if (opt & DATE_OPT_UTC) | 37 | if (opt & DATE_OPT_UTC) |
44 | xputenv((char*)"TZ=UTC0"); | 38 | putenv((char*)"TZ=UTC0"); |
45 | } | 39 | } |
46 | 40 | ||
47 | int date_main(int argc, char **argv); | 41 | int date_main(int argc, char **argv); |