1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/pserv/files/patch-log.c
Oliver Lehmann e63323d902 update to 3.3
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)
2005-05-28 09:08:44 +00:00

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;
}