43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
$NetBSD: patch-aa,v 1.1.1.1 2000/12/15 00:36:37 wiz Exp $
|
|
|
|
--- icb/c_log.c.orig Fri Feb 24 22:20:18 1995
|
|
+++ icb/c_log.c Fri Jul 21 02:08:35 2000
|
|
@@ -6,6 +6,7 @@
|
|
#include "icb.h"
|
|
#include "externs.h"
|
|
#include <time.h>
|
|
+#include <errno.h>
|
|
|
|
FILE *logfp = NULL;
|
|
|
|
@@ -45,8 +46,6 @@
|
|
time_t time();
|
|
struct tm *t, *localtime();
|
|
time_t clock;
|
|
- extern int errno, sys_nerr;
|
|
- extern char *sys_errlist[];
|
|
|
|
/* determine pathname to use */
|
|
if (path == NULL || *path == '\0')
|
|
@@ -97,8 +96,8 @@
|
|
aptr++;
|
|
|
|
/* 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 +125,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 */
|