[BACK]Return to zic.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / time

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/time/zic.c between version 1.32 and 1.33

version 1.32, 2012/10/24 00:30:52 version 1.33, 2012/10/25 13:14:32
Line 1128  inleap(char **const fields, const int nf
Line 1128  inleap(char **const fields, const int nf
                 error(_("time before zero"));                  error(_("time before zero"));
                 return;                  return;
         }          }
         if (dayoff < min_time / SECSPERDAY) {          if (dayoff < (long)(min_time / SECSPERDAY)) {
                 error(_("time too small"));                  error(_("time too small"));
                 return;                  return;
         }          }
         if (dayoff > max_time / SECSPERDAY) {          if (dayoff > (long)(max_time / SECSPERDAY)) {
                 error(_("time too large"));                  error(_("time too large"));
                 return;                  return;
         }          }
Line 2522  rpytime(const struct rule *const rp, con
Line 2522  rpytime(const struct rule *const rp, con
 will not work with pre-2004 versions of zic"));  will not work with pre-2004 versions of zic"));
                 }                  }
         }          }
         if (dayoff < min_time / SECSPERDAY)          if (dayoff < (long)(min_time / SECSPERDAY))
                 return min_time;                  return min_time;
         if (dayoff > max_time / SECSPERDAY)          if (dayoff > (long)(max_time / SECSPERDAY))
                 return max_time;                  return max_time;
         t = (zic_t) dayoff * SECSPERDAY;          t = (zic_t) dayoff * SECSPERDAY;
         return tadd(t, rp->r_tod);          return tadd(t, rp->r_tod);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

CVSweb <webmaster@jp.NetBSD.org>