This is the mail archive of the glibc-cvs@sourceware.org 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]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.15-410-gf196c7f


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  f196c7f7afe356c2d99502e8f30efff87a8a718a (commit)
      from  96cbe7f482fe89112de414da2bd8e90ffb0dcdbd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f196c7f7afe356c2d99502e8f30efff87a8a718a

commit f196c7f7afe356c2d99502e8f30efff87a8a718a
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Mar 16 09:10:12 2012 -0700

    Use time_t on ays, rem, y and yg in __offtime

diff --git a/ChangeLog b/ChangeLog
index 470f076..625d579 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
+
 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
 
 	* sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
diff --git a/time/offtime.c b/time/offtime.c
index 1ccd6a8..56c49f0 100644
--- a/time/offtime.c
+++ b/time/offtime.c
@@ -31,7 +31,7 @@ __offtime (t, offset, tp)
      long int offset;
      struct tm *tp;
 {
-  long int days, rem, y;
+  time_t days, rem, y;
   const unsigned short int *ip;
 
   days = *t / SECS_PER_DAY;
@@ -63,7 +63,7 @@ __offtime (t, offset, tp)
   while (days < 0 || days >= (__isleap (y) ? 366 : 365))
     {
       /* Guess a corrected year, assuming 365 days per year.  */
-      long int yg = y + days / 365 - (days % 365 < 0);
+      time_t yg = y + days / 365 - (days % 365 < 0);
 
       /* Adjust DAYS and Y to match the guessed year.  */
       days -= ((yg - y) * 365

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    4 ++++
 time/offtime.c |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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