From: Peep P. <so...@us...> - 2004-07-21 11:58:39
|
Update of /cvsroot/agd/server/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8860 Modified Files: log.c Log Message: Removed unused code. Index: log.c =================================================================== RCS file: /cvsroot/agd/server/src/log.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- log.c 21 Mar 2004 13:26:00 -0000 1.7 +++ log.c 21 Jul 2004 11:58:30 -0000 1.8 @@ -1,7 +1,7 @@ #include <stdio.h> -#include "sys.h" #include <stdarg.h> #include <time.h> +#include "sys.h" /* To prevent flooding the user with error messages. */ static int suppress_nofd, /* If we have a file descriptor. */ @@ -46,16 +46,6 @@ return 1; } -#if 0 -/* If we are compiling the dfparse binary, dfuns.o is not linked - and thus we don't get do_time(). */ -#ifdef _DFUNS_H -#define WRITELOG(x) fprintf(x, "%s [%s] %s", do_time(), prefix, str) -#else -#define WRITELOG(x) fprintf(x, "[%s] %s", prefix, str) -#endif -#endif - #define WRITELOG(x) fprintf(x, "[%s] %s", prefix, str) /* this currently writes the errors into a generic error log, maybe we should |