summaryrefslogtreecommitdiff
path: root/comms/fidogate/patches/patch-al
blob: 83e71b6f95cf88c55d677670f7623728441488fc (plain)
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
$NetBSD: patch-al,v 1.5 2004/08/23 15:18:02 tv Exp $

--- src/common/log.c.orig	2003-02-16 10:38:56.000000000 -0500
+++ src/common/log.c
@@ -137,7 +137,7 @@ void log(const char *fmt, ...)
 	if(fp)
 	{
 	    fprintf(fp, "%s %s ",
-		    date_buf(buf, sizeof(buf), DATE_LOG, (long *)0), logprog);
+		    date_buf(buf, sizeof(buf), DATE_LOG, (time_t *)0), logprog);
 	    vfprintf(fp, *fmt == '$' ? fmt + 1 : fmt, args);
 	    if (*fmt == '$')
 		fprintf(fp, " (errno=%d: %s)", errno, strerror(errno));
@@ -276,12 +276,5 @@ void log_file(char *name)
  */
 void log_program(char *name)
 {
-    char *p;
-    
     BUF_COPY(logprog, name);
-
-    if( (p = getenv("LOGFILE")) )
-       log_file(p);
-    if( (p = getenv("FIDOGATE_LOGFILE")) )
-       log_file(p);
 }