Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/cron/dist Mark usage and quit as dead.
details: https://anonhg.NetBSD.org/src/rev/b0eaa4feacfb
branches: trunk
changeset: 332109:b0eaa4feacfb
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Sep 07 13:34:12 2014 +0000
description:
Mark usage and quit as dead.
diffstat:
external/bsd/cron/dist/cron.c | 8 ++++----
external/bsd/cron/dist/crontab.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r 1b1be5ccdd1c -r b0eaa4feacfb external/bsd/cron/dist/cron.c
--- a/external/bsd/cron/dist/cron.c Sun Sep 07 11:50:23 2014 +0000
+++ b/external/bsd/cron/dist/cron.c Sun Sep 07 13:34:12 2014 +0000
@@ -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 @@
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 @@
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;
diff -r 1b1be5ccdd1c -r b0eaa4feacfb external/bsd/cron/dist/crontab.c
--- a/external/bsd/cron/dist/crontab.c Sun Sep 07 11:50:23 2014 +0000
+++ b/external/bsd/cron/dist/crontab.c Sun Sep 07 13:34:12 2014 +0000
@@ -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 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 @@
*/
(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
*/
Home |
Main Index |
Thread Index |
Old Index