From 6e937acf71bca150bb7c0385d3be0de5052f32df Mon Sep 17 00:00:00 2001 From: pluknet Date: Tue, 2 Oct 2012 09:23:16 +0000 Subject: [PATCH] Fix build with LOG_FILE undefined and DEBUGGING disabled. --- usr.sbin/cron/lib/misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/cron/lib/misc.c b/usr.sbin/cron/lib/misc.c index 5a08ad0b035..afed07f3ee8 100644 --- a/usr.sbin/cron/lib/misc.c +++ b/usr.sbin/cron/lib/misc.c @@ -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); -- 2.45.0