diff options
author | obrien <obrien@FreeBSD.org> | 2000-08-27 10:17:00 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-08-27 10:17:00 +0800 |
commit | c9817c536327059e1a07b14386b10cd9815d88b4 (patch) | |
tree | f4de9f1d580131d848432be6f9140d52fc58f90b /net-im | |
parent | e61f2b2efd53583234fed1a0e407514dca6a481a (diff) | |
download | freebsd-ports-gnome-c9817c536327059e1a07b14386b10cd9815d88b4.tar.gz freebsd-ports-gnome-c9817c536327059e1a07b14386b10cd9815d88b4.tar.zst freebsd-ports-gnome-c9817c536327059e1a07b14386b10cd9815d88b4.zip |
* Y2k fixes.
* get more declarations from our native headers.
Submitted by: will
Objtained from: NetBSD (patch-aa)
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/icb/files/patch-ac | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/net-im/icb/files/patch-ac b/net-im/icb/files/patch-ac index c71c7790cfb1..65e5dadb70ad 100644 --- a/net-im/icb/files/patch-ac +++ b/net-im/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 */ |