svn commit: r241124 - head/usr.sbin/cron/cron
Sergey Kandaurov
pluknet at FreeBSD.org
Tue Oct 2 09:19:29 UTC 2012
Author: pluknet
Date: Tue Oct 2 09:19:28 2012
New Revision: 241124
URL: http://svn.freebsd.org/changeset/base/241124
Log:
Fix build with DEBUGGING disabled.
Modified:
head/usr.sbin/cron/cron/cron.c
Modified: head/usr.sbin/cron/cron/cron.c
==============================================================================
--- head/usr.sbin/cron/cron/cron.c Tue Oct 2 07:14:22 2012 (r241123)
+++ head/usr.sbin/cron/cron/cron.c Tue Oct 2 09:19:28 2012 (r241124)
@@ -51,16 +51,20 @@ struct pidfh *pfh;
static void
usage() {
+#if DEBUGGING
char **dflags;
+#endif
fprintf(stderr, "usage: cron [-j jitter] [-J rootjitter] "
"[-m mailto] [-s] [-o] [-x debugflag[,...]]\n");
+#if DEBUGGING
fprintf(stderr, "\ndebugflags: ");
for(dflags = DebugFlagNames; *dflags; dflags++) {
fprintf(stderr, "%s ", *dflags);
}
fprintf(stderr, "\n");
+#endif
exit(ERROR_EXIT);
}
More information about the svn-src-all
mailing list