summaryrefslogtreecommitdiff
path: root/lib/libc/gen/timezone.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/timezone.c')
-rw-r--r--lib/libc/gen/timezone.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/libc/gen/timezone.c b/lib/libc/gen/timezone.c
index 9a5c96227d7..6086f67bb31 100644
--- a/lib/libc/gen/timezone.c
+++ b/lib/libc/gen/timezone.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: timezone.c,v 1.2 1996/08/19 08:26:48 tholo Exp $";
+static char rcsid[] = "$OpenBSD: timezone.c,v 1.3 1997/07/09 00:28:25 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -62,8 +62,8 @@ timezone(zone, dst)
register char *beg,
*end;
- if (beg = getenv("TZNAME")) { /* set in environment */
- if (end = strchr(beg, ',')) { /* "PST,PDT" */
+ if ((beg = getenv("TZNAME"))) { /* set in environment */
+ if ((end = strchr(beg, ','))) { /* "PST,PDT" */
if (dst)
return(++end);
*end = '\0';
@@ -82,22 +82,22 @@ static struct zone {
char *stdzone;
char *dlzone;
} zonetab[] = {
- -1*60, "MET", "MET DST", /* Middle European */
- -2*60, "EET", "EET DST", /* Eastern European */
- 4*60, "AST", "ADT", /* Atlantic */
- 5*60, "EST", "EDT", /* Eastern */
- 6*60, "CST", "CDT", /* Central */
- 7*60, "MST", "MDT", /* Mountain */
- 8*60, "PST", "PDT", /* Pacific */
+ { -1*60, "MET", "MET DST"} , /* Middle European */
+ { -2*60, "EET", "EET DST"} , /* Eastern European */
+ { 4*60, "AST", "ADT"} , /* Atlantic */
+ { 5*60, "EST", "EDT"} , /* Eastern */
+ { 6*60, "CST", "CDT"} , /* Central */
+ { 7*60, "MST", "MDT"} , /* Mountain */
+ { 8*60, "PST", "PDT"} , /* Pacific */
#ifdef notdef
/* there's no way to distinguish this from WET */
- 0, "GMT", 0, /* Greenwich */
+ { 0, "GMT", 0 }, /* Greenwich */
#endif
- 0*60, "WET", "WET DST", /* Western European */
- -10*60, "EST", "EST", /* Aust: Eastern */
- -10*60+30, "CST", "CST", /* Aust: Central */
- -8*60, "WST", 0, /* Aust: Western */
- -1
+ { 0*60, "WET", "WET DST" }, /* Western European */
+ { -10*60, "EST", "EST" }, /* Aust: Eastern */
+ { -10*60+30,"CST", "CST" }, /* Aust: Central */
+ { -8*60, "WST", 0 }, /* Aust: Western */
+ { -1 }
};
/*