diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-08-27 02:17:00 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-08-27 02:17:00 +0000 |
commit | be3d0e365e65c595ead97a2df79e31a043af2913 (patch) | |
tree | 864f436fc44eda575be3f01ec452148c750ac311 /net/icb/files | |
parent | A better version of rev 1.4. (diff) |
* Y2k fixes.
* get more declarations from our native headers.
Submitted by: will
Objtained from: NetBSD (patch-aa)
Notes
Notes:
svn path=/head/; revision=32017
Diffstat (limited to 'net/icb/files')
-rw-r--r-- | net/icb/files/patch-ac | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/net/icb/files/patch-ac b/net/icb/files/patch-ac index c71c7790cfb1..65e5dadb70ad 100644 --- a/net/icb/files/patch-ac +++ b/net/icb/files/patch-ac @@ -1,12 +1,42 @@ --- icb/c_log.c.orig Fri Feb 24 13:20:18 1995 -+++ icb/c_log.c Mon May 25 15:04:35 1998 -@@ -46,7 +46,9 @@ ++++ icb/c_log.c Sat Aug 26 19:15:52 2000 +@@ -6,6 +6,7 @@ + #include "icb.h" + #include "externs.h" + #include <time.h> ++#include <errno.h> + + FILE *logfp = NULL; + +@@ -45,8 +46,10 @@ + time_t time(); struct tm *t, *localtime(); time_t clock; - extern int errno, sys_nerr; +#if !(defined(BSD) && BSD >= 199306) + extern int errno, sys_nerr; extern char *sys_errlist[]; +#endif /* determine pathname to use */ if (path == NULL || *path == '\0') +@@ -98,7 +101,8 @@ + + /* timestamp it */ + sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-2d %s.", +- path, t->tm_mon+1, t->tm_mday, t->tm_year, aptr); ++ sprintf(mbuf, "Session log \"%s\" started at %d/%02d/%-4d %s.", ++ path, t->tm_mon+1, t->tm_mday, 1900+t->tm_year, aptr); + putl(mbuf, PL_SCR | PL_LOG); + + return(0); +@@ -126,8 +130,8 @@ + aptr++; + + /* timestamp it */ +- sprintf(mbuf, "Session log closed at %d/%02d/%-2d %s.", +- t->tm_mon+1, t->tm_mday, t->tm_year, aptr); ++ sprintf(mbuf, "Session log closed at %d/%02d/%-4d %s.", ++ t->tm_mon+1, t->tm_mday, 1900+t->tm_year, aptr); + putl(mbuf, PL_SCR | PL_LOG); + + /* close it */ |