[tz] [PROPOSED PATCH] * localtime.c (tzset_unlocked): Don't return a void expression.

Paul Eggert eggert at cs.ucla.edu
Wed Aug 27 21:17:35 UTC 2014


The C standard does not allow this, and Sun C 5.12 rejects it.
---
 localtime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/localtime.c b/localtime.c
index 2434167..622f7d4 100644
--- a/localtime.c
+++ b/localtime.c
@@ -1229,7 +1229,7 @@ tzsetwall(void)
 static void
 tzset_unlocked(void)
 {
-  return tzsetlcl(getenv("TZ"));
+  tzsetlcl(getenv("TZ"));
 }
 
 void
-- 
1.9.1



More information about the tz mailing list