Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2012 09:23:16 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241125 - head/usr.sbin/cron/lib
Message-ID:  <201210020923.q929NGFi009298@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Tue Oct  2 09:23:16 2012
New Revision: 241125
URL: http://svn.freebsd.org/changeset/base/241125

Log:
  Fix build with LOG_FILE undefined and DEBUGGING disabled.

Modified:
  head/usr.sbin/cron/lib/misc.c

Modified: head/usr.sbin/cron/lib/misc.c
==============================================================================
--- head/usr.sbin/cron/lib/misc.c	Tue Oct  2 09:19:28 2012	(r241124)
+++ head/usr.sbin/cron/lib/misc.c	Tue Oct  2 09:23:16 2012	(r241125)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210020923.q929NGFi009298>