From d0498e791a58143a4cfb1ee92e571908736d1459 Mon Sep 17 00:00:00 2001 From: Arthur David Olson Date: Tue, 16 Feb 1988 22:44:07 -0500 Subject: [PATCH] ANSI SCCS-file: asctime.c SCCS-SID: 3.3 --- asctime.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/asctime.c b/asctime.c index dde5b65..2973808 100644 --- a/asctime.c +++ b/asctime.c @@ -4,18 +4,19 @@ #include "stdio.h" -#ifndef lint -#ifndef NOID -static char sccsid[] = "%W%"; -#endif /* !NOID */ -#endif /* !lint */ +#if !defined lint && !defined NOID +static char elsieid[] = "%W%" +#endif /* !defined lint && !defined NOID */ #include "time.h" #include "tzfile.h" -#ifndef USG +#if !defined __STDC__ +#define const +#if !defined USG extern char * sprintf(); -#endif /* !USG */ +#endif /* !defined USG */ +#endif /* !defined __STDC__ */ /* ** A la X3J11 @@ -23,7 +24,7 @@ extern char * sprintf(); char * asctime(timeptr) -register struct tm * timeptr; +register const struct tm * timeptr; { static char wday_name[DAYS_PER_WEEK][3] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"