From 3d90be2efe6f70cef96048c6f3dfc71402a9bae4 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 20 Mar 2008 23:25:04 +0000 Subject: [PATCH] fix compile breakage --- coreutils/date.c | 8 +------- 1 file changed, 1 insertion(+), 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 @@ #define DATE_OPT_TIMESPEC 0x20 #define DATE_OPT_HINT 0x40 -static void xputenv(char *s) -{ - if (putenv(s) != 0) - bb_error_msg_and_die(bb_msg_memory_exhausted); -} - static void maybe_set_utc(int opt) { if (opt & DATE_OPT_UTC) - xputenv((char*)"TZ=UTC0"); + putenv((char*)"TZ=UTC0"); } int date_main(int argc, char **argv); -- 2.25.1