A timezone patch
H.J. Lu
hjl@lucon.org
Wed Oct 28 20:41:00 GMT 1998
Hi,
We should only check daylight is zero or not. With my time bug fix,
it is not 1 anymore.
Thanks.
--
H.J. Lu (hjl@gnu.org)
---
Wed Oct 28 20:38:39 1998 H.J. Lu <hjl@gnu.org>
* timezone/tst-timezone.c (check_tzvars): Check daylight is
zero or non-zero.
Index: timezone/tst-timezone.c
===================================================================
RCS file: /home/work/cvs/gnu/glibc/timezone/tst-timezone.c,v
retrieving revision 1.1.1.4
diff -u -p -r1.1.1.4 tst-timezone.c
--- tst-timezone.c 1998/09/23 14:14:11 1.1.1.4
+++ tst-timezone.c 1998/10/29 04:36:29
@@ -60,10 +60,11 @@ check_tzvars (const char *name, int dayl
{
int i;
- if (daylight != dayl)
+ if ((daylight != 0) != (dayl != 0))
{
- printf ("Timezone: %s, daylight is: %d but should be: %d\n",
- name, daylight, dayl);
+ printf ("Timezone: %s, daylight is: %s but should be: %s\n",
+ name, daylight ? "non-zero" : "zero",
+ dayl ? "non-zero" : "zero");
++failed;
}
if (timezone != timez)
More information about the Libc-hacker
mailing list