diff options
Diffstat (limited to 'coreutils/date.c')
-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); |