mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
e63323d902
change installation of etc/mime.types to etc/mime.types.pserv (stop conflicting with other ports) PR: ports/80726 Approved by: maintainer timeout (21 days)
46 lines
806 B
C
46 lines
806 B
C
--- sources/log.c.orig Mon May 16 23:03:16 2005
|
|
+++ sources/log.c Sat May 28 10:41:25 2005
|
|
@@ -23,6 +23,7 @@
|
|
*/
|
|
int logFileOpen()
|
|
{
|
|
+#ifdef LOG
|
|
char timeStr[256];
|
|
struct tm *timeStruct;
|
|
time_t timeTemp;
|
|
@@ -38,6 +39,7 @@
|
|
fflush(lf); /* otherwise we have mysterious problems with fork() !! */
|
|
|
|
DBGPRINTF(("Opened Log File.\n"));
|
|
+#endif
|
|
return 0;
|
|
}
|
|
|
|
@@ -45,8 +47,10 @@
|
|
*/
|
|
int logFileClose()
|
|
{
|
|
+#ifdef LOG
|
|
fclose(lf);
|
|
DBGPRINTF(("Closed Log File.\n"));
|
|
+#endif
|
|
return 0;
|
|
}
|
|
|
|
@@ -61,6 +65,7 @@
|
|
struct request req;
|
|
int code;
|
|
{
|
|
+#ifdef LOG
|
|
char timeStr[256];
|
|
struct tm *timeStruct;
|
|
time_t timeTemp;
|
|
@@ -108,6 +113,7 @@
|
|
printf ("Unknown event to log! Programming error!\n");
|
|
}
|
|
fflush(lf);
|
|
+#endif
|
|
return 0;
|
|
}
|
|
|