summaryrefslogtreecommitdiff
path: root/www/pserv/files/patch-log.c
blob: 0ff9c67e19a7fdd46866cfb06b6b9c10daf6eb34 (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
44
45
--- sources/log.c.orig	Wed May  5 12:12:12 2004
+++ sources/log.c	Wed May  5 12:04:57 2004
@@ -20,6 +20,7 @@
 
 int logFileOpen()
 {
+#ifdef LOG
     char timeStr[256];
     struct tm *timeStruct;
     time_t timeTemp;
@@ -37,15 +38,18 @@
 #ifdef PRINTF_DEBUG
     printf("Opened Log File.\n");
 #endif    
+#endif    
     return 0;
 }
 
 int logFileClose()
 {
+#ifdef LOG
     fclose(lf);
 #ifdef PRINTF_DEBUG
     printf("Closed Log File.\n");
 #endif    
+#endif    
     return 0;
 }
 
@@ -57,6 +61,7 @@
 struct request req;
 int code;
 {
+#ifdef LOG
     char timeStr[256];
     struct tm *timeStruct;
     time_t timeTemp;
@@ -104,6 +109,7 @@
         printf ("Unknown event to log! Programming error!\n");
     }
     fflush(lf);
+#endif
     return 0;
 }