diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2014-10-02 06:23:16 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2014-10-02 06:23:16 +0000 |
commit | 7bf169ff2d1a22fa719ed88ff56346d8e4e24a95 (patch) | |
tree | 7d5d3b6e7f6ce09d77fd2e9cac58c3ef8b6740dc /usr.bin/rcs/rlog.c | |
parent | 11cd5eb8641dc67f6f51455f910bd63c02f0cf09 (diff) |
exit in usage functions themselves; from Fritjof Bornebusch; ok nicm@
Diffstat (limited to 'usr.bin/rcs/rlog.c')
-rw-r--r-- | usr.bin/rcs/rlog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c index ff66dc8ed71..0cb09d3a118 100644 --- a/usr.bin/rcs/rlog.c +++ b/usr.bin/rcs/rlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlog.c,v 1.67 2014/01/07 14:08:16 deraadt Exp $ */ +/* $OpenBSD: rlog.c,v 1.68 2014/10/02 06:23:15 otto Exp $ */ /* * Copyright (c) 2005, 2009 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -58,13 +58,15 @@ static char *wlist = NULL; static char *revisions = NULL; static char *rlog_dates = NULL; -void +__dead void rlog_usage(void) { fprintf(stderr, "usage: rlog [-bhLNRtV] [-ddates] [-l[lockers]] [-r[revs]]\n" " [-sstates] [-w[logins]] [-xsuffixes]\n" " [-ztz] file ...\n"); + + exit(1); } int @@ -135,7 +137,6 @@ rlog_main(int argc, char **argv) break; default: (usage()); - exit(1); } } @@ -145,7 +146,6 @@ rlog_main(int argc, char **argv) if (argc == 0) { warnx("no input file"); (usage)(); - exit(1); } if (hflag == 1 && tflag == 1) { |