Fix build with LOG_FILE undefined and DEBUGGING disabled.

This commit is contained in:
pluknet 2012-10-02 09:23:16 +00:00
parent ed9eade0ad
commit 6e937acf71

View File

@ -391,7 +391,9 @@ log_it(username, xpid, event, detail)
char *event;
char *detail;
{
#if defined(LOG_FILE) || DEBUGGING
PID_T pid = xpid;
#endif
#if defined(LOG_FILE)
char *msg;
TIME_T now = time((TIME_T) 0);