* Timezone environment flipping *
*************************************************/
+#ifdef MISSING_UNSETENV_3
+# include "setenv.c"
+#endif
+
static uschar *
to_tz(uschar * tz)
{
uschar * old = US getenv("TZ");
- setenv("TZ", CS tz, 1);
- tzset();
+ (void) setenv("TZ", CCS tz, 1);
+ tzset();
return old;
}
static void
restore_tz(uschar * tz)
{
if (tz)
- setenv("TZ", CS tz, 1);
+ (void) setenv("TZ", CCS tz, 1);
else
- unsetenv("TZ");
- tzset();
+ (void) unsetenv("TZ");
+ tzset();
}
/*************************************************