about summary refs log tree commit diff
path: root/time/offtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/offtime.c')
-rw-r--r--time/offtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time/offtime.c b/time/offtime.c
index c0b1db59bd..703ae9e2c3 100644
--- a/time/offtime.c
+++ b/time/offtime.c
@@ -32,7 +32,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;
@@ -64,7 +64,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