diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-26 07:17:52 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-26 07:17:52 +0000 |
commit | a0ec7918f3da09156c3897fa63518e16af11081a (patch) | |
tree | 9b718211f1dcd71ac51ea95e1a541694f348935b /coreutils | |
parent | 52c886144fd0491fd3b60f04a9f144cac6c12de4 (diff) | |
download | busybox-w32-1_6_2.tar.gz busybox-w32-1_6_2.tar.bz2 busybox-w32-1_6_2.zip |
apply accumulated post-1.6.1 patches, and bump version to 1.6.21_6_2
Diffstat (limited to 'coreutils')
-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 57c826a3f..9288699a5 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); |