bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] Minor lib/mktime.c correction.


From: Derek Robert Price
Subject: [Bug-gnulib] Minor lib/mktime.c correction.
Date: Wed, 27 Oct 2004 14:14:15 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

Attached is a simple correction for the not_equal_tm() function in
lib/mktime.c.  Basically, the same value was checked twice in an or
statement.

2004-10-27  Derek R. Price  <address@hidden>

    * lib/mktime.c (not_equal_tm): Remove redundant check.

Cheers,

Derek

-- 
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!

Index: lib/mktime.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/mktime.c,v
retrieving revision 1.43
diff -u -p -r1.43 mktime.c
--- lib/mktime.c        22 Oct 2004 20:19:01 -0000      1.43
+++ lib/mktime.c        27 Oct 2004 16:00:23 -0000
@@ -495,7 +495,6 @@ not_equal_tm (const struct tm *a, const 
          | (a->tm_mday ^ b->tm_mday)
          | (a->tm_mon ^ b->tm_mon)
          | (a->tm_year ^ b->tm_year)
-         | (a->tm_mday ^ b->tm_mday)
          | (a->tm_yday ^ b->tm_yday)
          | (a->tm_isdst ^ b->tm_isdst));
 }

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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