summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2012-10-02 09:23:16 +0000
committerpluknet <pluknet@FreeBSD.org>2012-10-02 09:23:16 +0000
commit6e937acf71bca150bb7c0385d3be0de5052f32df (patch)
tree7a6898cb794172f4bc1bd76f5847d711f330d549
parented9eade0ade2cb7d9df1e363cf8850fcb0dd8bec (diff)
downloadFreeBSD-src-6e937acf71bca150bb7c0385d3be0de5052f32df.zip
FreeBSD-src-6e937acf71bca150bb7c0385d3be0de5052f32df.tar.gz
Fix build with LOG_FILE undefined and DEBUGGING disabled.
-rw-r--r--usr.sbin/cron/lib/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/cron/lib/misc.c b/usr.sbin/cron/lib/misc.c
index 5a08ad0..afed07f 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);
OpenPOWER on IntegriCloud