mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
067e95c420
Obtained from: NetBSD
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
--- icb/c_log.c.orig Fri Feb 24 13:20:18 1995
|
|
+++ icb/c_log.c Sat Aug 26 19:18:36 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;
|
|
+#if !(defined(BSD) && BSD >= 199306)
|
|
extern int errno, sys_nerr;
|
|
extern char *sys_errlist[];
|
|
+#endif
|
|
|
|
/* determine pathname to use */
|
|
if (path == NULL || *path == '\0')
|
|
@@ -97,8 +100,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 +129,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 */
|