aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/icb/files/patch-ac
blob: e58c70c4903dad5ecf5534151d04102081f40caa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- 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 */