git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tidying: char signedness
[exim.git]
/
src
/
src
/
tls.c
diff --git
a/src/src/tls.c
b/src/src/tls.c
index a3658276fcca5bd13d58dc04f17fce470ef95e90..55295108c1315038968945d09e6a2c871f8b82d2 100644
(file)
--- a/
src/src/tls.c
+++ b/
src/src/tls.c
@@
-2,7
+2,7
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 201
5
*/
+/* Copyright (c) University of Cambridge 1995 - 201
6
*/
/* See the file NOTICE for conditions of use and distribution. */
/* This module provides TLS (aka SSL) support for Exim. The code for OpenSSL is
/* See the file NOTICE for conditions of use and distribution. */
/* This module provides TLS (aka SSL) support for Exim. The code for OpenSSL is
@@
-87,19
+87,20
@@
return TRUE;
static uschar *
to_tz(uschar * tz)
{
static uschar *
to_tz(uschar * tz)
{
-
uschar * old = US getenv("TZ");
-
setenv("TZ",
CS tz, 1);
-
tzset();
-
return old;
+uschar * old = US getenv("TZ");
+
(void) setenv("TZ", C
CS tz, 1);
+tzset();
+return old;
}
}
+
static void
restore_tz(uschar * tz)
{
static void
restore_tz(uschar * tz)
{
-
if (tz)
-
setenv("TZ",
CS tz, 1);
-
else
-
unsetenv(
"TZ");
-
tzset();
+if (tz)
+
(void) setenv("TZ", C
CS tz, 1);
+else
+
(void) os_unsetenv(US
"TZ");
+tzset();
}
/*************************************************
}
/*************************************************