diff options
author | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-01-29 22:50:17 +0000 |
---|---|---|
committer | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-01-29 22:50:17 +0000 |
commit | c8719a987f3519e00ca36c98f5e3a6a76e6f62f0 (patch) | |
tree | 1f822ac8797acb50dbfaa3becefdee25acacf06e /usr.sbin | |
parent | 8d54fbaef97a1994a4eb75b04d64c570071fba29 (diff) |
tweak usage()
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/cron/cron.c | 6 | ||||
-rw-r--r-- | usr.sbin/cron/crontab.c | 17 |
2 files changed, 12 insertions, 11 deletions
diff --git a/usr.sbin/cron/cron.c b/usr.sbin/cron/cron.c index b30058e583a..208c4865c25 100644 --- a/usr.sbin/cron/cron.c +++ b/usr.sbin/cron/cron.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cron.c,v 1.39 2007/02/18 23:59:03 jmc Exp $ */ +/* $OpenBSD: cron.c,v 1.40 2009/01/29 22:50:16 sobrado Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static const char rcsid[] = "$OpenBSD: cron.c,v 1.39 2007/02/18 23:59:03 jmc Exp $"; +static const char rcsid[] = "$OpenBSD: cron.c,v 1.40 2009/01/29 22:50:16 sobrado Exp $"; #endif #define MAIN_PROGRAM @@ -55,7 +55,7 @@ usage(void) { const char **dflags; #endif - fprintf(stderr, "usage: %s [-n] [-l load_avg] [-x [", ProgramName); + fprintf(stderr, "usage: %s [-n] [-l load_avg] [-x [", ProgramName); #if DEBUGGING for (dflags = DebugFlagNames; *dflags; dflags++) fprintf(stderr, "%s%s", *dflags, dflags[1] ? "," : "]"); diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 8e5b76ae67d..df8309e3106 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.56 2008/05/10 15:11:08 okan Exp $ */ +/* $OpenBSD: crontab.c,v 1.57 2009/01/29 22:50:16 sobrado Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -21,7 +21,7 @@ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -static char const rcsid[] = "$OpenBSD: crontab.c,v 1.56 2008/05/10 15:11:08 okan Exp $"; +static char const rcsid[] = "$OpenBSD: crontab.c,v 1.57 2009/01/29 22:50:16 sobrado Exp $"; /* crontab - install and manage per-user crontab files * vix 02may87 [RCS has the rest of the log] @@ -65,12 +65,13 @@ static int ignore_comments(FILE *); static void usage(const char *msg) { fprintf(stderr, "%s: usage error: %s\n", ProgramName, msg); - fprintf(stderr, "usage:\t%s [-u user] file\n", ProgramName); - fprintf(stderr, "\t%s [ -e | -l | -r ] [-u user]\n", ProgramName); - fprintf(stderr, "\t\t(default operation is replace, per 1003.2)\n"); - fprintf(stderr, "\t-e\t(edit user's crontab)\n"); - fprintf(stderr, "\t-l\t(list user's crontab)\n"); - fprintf(stderr, "\t-r\t(delete user's crontab)\n"); + fprintf(stderr, "usage: %s [-u user] file\n", ProgramName); + fprintf(stderr, " %s [-e | -l | -r] [-u user]\n", ProgramName); + fprintf(stderr, + "\t\t(default operation is replace, per 1003.2)\n" + "\t-e\t(edit user's crontab)\n" + "\t-l\t(list user's crontab)\n" + "\t-r\t(delete user's crontab)\n"); exit(ERROR_EXIT); } |