Module Name: src Committed By: joerg Date: Sun Sep 7 13:34:12 UTC 2014
Modified Files: src/external/bsd/cron/dist: cron.c crontab.c Log Message: Mark usage and quit as dead. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/bsd/cron/dist/cron.c cvs rdiff -u -r1.10 -r1.11 src/external/bsd/cron/dist/crontab.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/cron/dist/cron.c diff -u src/external/bsd/cron/dist/cron.c:1.8 src/external/bsd/cron/dist/cron.c:1.9 --- src/external/bsd/cron/dist/cron.c:1.8 Fri Sep 5 21:32:37 2014 +++ src/external/bsd/cron/dist/cron.c Sun Sep 7 13:34:12 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: cron.c,v 1.8 2014/09/05 21:32:37 christos Exp $ */ +/* $NetBSD: cron.c,v 1.9 2014/09/07 13:34:12 joerg Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -25,7 +25,7 @@ #if 0 static char rcsid[] = "Id: cron.c,v 1.12 2004/01/23 18:56:42 vixie Exp"; #else -__RCSID("$NetBSD: cron.c,v 1.8 2014/09/05 21:32:37 christos Exp $"); +__RCSID("$NetBSD: cron.c,v 1.9 2014/09/07 13:34:12 joerg Exp $"); #endif #endif @@ -35,7 +35,7 @@ __RCSID("$NetBSD: cron.c,v 1.8 2014/09/0 enum timejump { negative, small, medium, large }; -static void usage(void), +static void usage(void) __dead, run_reboot_jobs(cron_db *), find_jobs(time_t, cron_db *, int, int), set_time(int), @@ -43,7 +43,7 @@ static void usage(void), sigchld_handler(int), sighup_handler(int), sigchld_reaper(void), - quit(int), + quit(int) __dead, parse_args(int c, char *v[]); static volatile sig_atomic_t got_sighup, got_sigchld; Index: src/external/bsd/cron/dist/crontab.c diff -u src/external/bsd/cron/dist/crontab.c:1.10 src/external/bsd/cron/dist/crontab.c:1.11 --- src/external/bsd/cron/dist/crontab.c:1.10 Sat Sep 6 12:18:49 2014 +++ src/external/bsd/cron/dist/crontab.c Sun Sep 7 13:34:12 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: crontab.c,v 1.10 2014/09/06 12:18:49 christos Exp $ */ +/* $NetBSD: crontab.c,v 1.11 2014/09/07 13:34:12 joerg Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -25,7 +25,7 @@ #if 0 static char rcsid[] = "Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp"; #else -__RCSID("$NetBSD: crontab.c,v 1.10 2014/09/06 12:18:49 christos Exp $"); +__RCSID("$NetBSD: crontab.c,v 1.11 2014/09/07 13:34:12 joerg Exp $"); #endif #endif @@ -69,7 +69,7 @@ static int in_file(const char *, FILE static int relinguish_priv(void); static int regain_priv(void); -static void +static __dead void usage(const char *msg) { (void)fprintf(stderr, "%s: usage error: %s\n", getprogname(), msg); (void)fprintf(stderr, "usage:\t%s [-u user] file\n", getprogname()); @@ -639,7 +639,7 @@ replace_cmd(void) { */ (void)fprintf(tmp, "# DO NOT EDIT THIS FILE - edit the master and reinstall.\n"); (void)fprintf(tmp, "# (%s installed on %-24.24s)\n", Filename, ctime(&now)); - (void)fprintf(tmp, "# (Cron version %s -- %s)\n", CRON_VERSION, "$NetBSD: crontab.c,v 1.10 2014/09/06 12:18:49 christos Exp $"); + (void)fprintf(tmp, "# (Cron version %s -- %s)\n", CRON_VERSION, "$NetBSD: crontab.c,v 1.11 2014/09/07 13:34:12 joerg Exp $"); /* copy the crontab to the tmp */