]> sjero.net Git - wget/commitdiff
[svn] Doc fix.
authorhniksic <devnull@localhost>
Tue, 5 Jul 2005 11:44:02 +0000 (04:44 -0700)
committerhniksic <devnull@localhost>
Tue, 5 Jul 2005 11:44:02 +0000 (04:44 -0700)
src/cmpt.c

index db45eaab34cc5d0c37eab307c7e93244c83aa601..3e80f782c31335e15b8b6f37a4a789d24b707ff2 100644 (file)
@@ -1227,7 +1227,7 @@ fnmatch (const char *pattern, const char *string, int flags)
 
 /* Inverse of gmtime: converts struct tm to time_t, assuming the data
    in tm is UTC rather than local timezone.  This implementation
-   returns the number of seconds since 1070-01-01, converted to
+   returns the number of seconds since 1970-01-01, converted to
    time_t.  */
 
 #define IS_LEAP(year)                                                  \
@@ -1248,8 +1248,8 @@ timegm (struct tm *t)
     return (time_t) -1;
 
   days = 365 * (t->tm_year - 70);
-  /* Take into account leap years between 1970 and YEAR-1; all years
-     divisible by four between 1968 and 2100 should be leap.  */
+  /* Take into account leap years between 1970 and t->tm_year-1; all
+     years divisible by four between 1968 and 2100 should be leap.  */
   days += (t->tm_year - 1 - 68) / 4;
   if (t->tm_mon < 0 || t->tm_mon >= 12)
     return (time_t) -1;