fix year length defines for tzfile.h
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 11 May 1989 13:42:40 +0000 (05:42 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 11 May 1989 13:42:40 +0000 (05:42 -0800)
SCCS-vsn: local/sccscmds/sccscmds.2/com/date_ab.c 4.6
SCCS-vsn: local/sccscmds/sccscmds.ok/com/date_ab.c 4.6

usr/src/local/sccscmds/sccscmds.2/com/date_ab.c
usr/src/local/sccscmds/sccscmds.ok/com/date_ab.c

index b51401e..522f271 100644 (file)
@@ -1,7 +1,7 @@
 # include      "../hdr/macros.h"
 # include      <tzfile.h>
 
 # include      "../hdr/macros.h"
 # include      <tzfile.h>
 
-static char Sccsid[] = "@(#)date_ab.c  4.5     %G%";
+static char Sccsid[] = "@(#)date_ab.c  4.6     %G%";
 
 /*
        Function to convert date in the form "yymmddhhmmss" to
 
 /*
        Function to convert date in the form "yymmddhhmmss" to
@@ -15,7 +15,7 @@ static char Sccsid[] = "@(#)date_ab.c 4.5     %G%";
        Function returns -1 if bad time is given (i.e., "730229").
 */
 
        Function returns -1 if bad time is given (i.e., "730229").
 */
 
-#define        dysize(year)    (isleap(year) ? DAYS_PER_LYEAR : DAYS_PER_NYEAR)
+#define        dysize(year)    (isleap(year) ? DAYSPERLYEAR : DAYSPERNYEAR)
 
 char *Datep;
 
 
 char *Datep;
 
index b51401e..522f271 100644 (file)
@@ -1,7 +1,7 @@
 # include      "../hdr/macros.h"
 # include      <tzfile.h>
 
 # include      "../hdr/macros.h"
 # include      <tzfile.h>
 
-static char Sccsid[] = "@(#)date_ab.c  4.5     %G%";
+static char Sccsid[] = "@(#)date_ab.c  4.6     %G%";
 
 /*
        Function to convert date in the form "yymmddhhmmss" to
 
 /*
        Function to convert date in the form "yymmddhhmmss" to
@@ -15,7 +15,7 @@ static char Sccsid[] = "@(#)date_ab.c 4.5     %G%";
        Function returns -1 if bad time is given (i.e., "730229").
 */
 
        Function returns -1 if bad time is given (i.e., "730229").
 */
 
-#define        dysize(year)    (isleap(year) ? DAYS_PER_LYEAR : DAYS_PER_NYEAR)
+#define        dysize(year)    (isleap(year) ? DAYSPERLYEAR : DAYSPERNYEAR)
 
 char *Datep;
 
 
 char *Datep;