bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tzset.c: removing a tiny bit of dead code


From: Jim Meyering
Subject: tzset.c: removing a tiny bit of dead code
Date: Sat, 01 Feb 2003 10:34:18 +0100

Hi,

There's a little bit of dead code in tzset.c.

        * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
        always returns 1.

You might also want to change __tzfile_compute to be of type `void'
rather than `int'.

Index: time/tzset.c
===================================================================
RCS file: /cvs/glibc/libc/time/tzset.c,v
retrieving revision 1.73
diff -u -p -u -p -r1.73 tzset.c
--- time/tzset.c        1 Nov 2002 20:43:55 -0000       1.73
+++ time/tzset.c        1 Feb 2003 09:32:14 -0000
@@ -568,9 +568,8 @@ __tz_convert (const time_t *timer, int u
 
   if (__use_tzfile)
     {
-      if (! __tzfile_compute (*timer, use_localtime,
-                             &leap_correction, &leap_extra_secs, tp))
-       tp = NULL;
+      __tzfile_compute (*timer, use_localtime,
+                       &leap_correction, &leap_extra_secs, tp);
     }
   else
     {

Attachment: pgpww46UQfMHN.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]