diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2006-02-18 21:54:18 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2006-02-18 21:54:18 +0000 |
commit | 5f50945fa963bcbb2a85a9a31a6cd5434c8fa835 (patch) | |
tree | a95882f2e211521425ae2b1f4be950ed7c92c498 /lib/libc/time/localtime.c | |
parent | 0c56dc52204d19c05046dcc3e47ba5387d3924e9 (diff) |
Update to tzcode2006a; primarily just cast and const fixes.
Diffstat (limited to 'lib/libc/time/localtime.c')
-rw-r--r-- | lib/libc/time/localtime.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/time/localtime.c b/lib/libc/time/localtime.c index f403bd05e79..8fd6ef1523f 100644 --- a/lib/libc/time/localtime.c +++ b/lib/libc/time/localtime.c @@ -1,13 +1,12 @@ -/* $OpenBSD: localtime.c,v 1.30 2005/08/09 16:12:12 millert Exp $ */ +/* $OpenBSD: localtime.c,v 1.31 2006/02/18 21:54:17 millert Exp $ */ /* ** This file is in the public domain, so clarified as of -** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). +** 1996-06-05 by Arthur David Olson. */ /* -** Leap second handling from Bradley White (bww@k.gp.cs.cmu.edu). -** POSIX-style TZ environment variable handling from Guy Harris -** (guy@auspex.com). +** Leap second handling from Bradley White. +** POSIX-style TZ environment variable handling from Guy Harris. */ /*LINTLIBRARY*/ @@ -206,7 +205,7 @@ char * tzname[2] = { ** Except for the strftime function, these functions [asctime, ** ctime, gmtime, localtime] return values in one of two static ** objects: a broken-down time structure and an array of char. -** Thanks to Paul Eggert (eggert@twinsun.com) for noting this. +** Thanks to Paul Eggert for noting this. */ static struct tm tm; @@ -1445,7 +1444,6 @@ char * buf; ** Adapted from code provided by Robert Elz, who writes: ** The "best" way to do mktime I think is based on an idea of Bob ** Kridle's (so its said...) from a long time ago. -** [kridle@xinet.com as of 1996-01-16.] ** It does a binary search of the time_t space. Since time_t's are ** just 32 bits, its a max of 32 iterations (even at 64 bits it ** would still be very reasonable). @@ -1456,7 +1454,7 @@ char * buf; #endif /* !defined WRONG */ /* -** Simplified normalize logic courtesy Paul Eggert (eggert@twinsun.com). +** Simplified normalize logic courtesy Paul Eggert. */ static int @@ -1756,7 +1754,7 @@ const long offset; t = time2(tmp, funcp, offset, &okay); #ifdef PCTS /* - ** PCTS code courtesy Grant Sullivan (grant@osf.org). + ** PCTS code courtesy Grant Sullivan. */ if (okay) return t; |