This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A timezone patch


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]