From dd28ef8a71d1e784b07abb66ed629e05e1bc5334 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Mon, 8 May 2006 09:48:13 +0000 Subject: exit with status 2 after usage() too; pointed out by uwe@. --- usr.bin/rcs/rcsdiff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/rcs/rcsdiff.c') diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index 389080a6c81..e1ea2b0c338 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.61 2006/05/05 15:47:36 xsa Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.62 2006/05/08 09:48:12 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -63,7 +63,7 @@ rcsdiff_main(int argc, char **argv) if (RCS_KWEXP_INVAL(kflag)) { warnx("invalid RCS keyword substitution mode"); (usage)(); - exit(1); + exit(D_ERROR); } break; case 'n': @@ -102,7 +102,7 @@ rcsdiff_main(int argc, char **argv) break; default: (usage)(); - exit (1); + exit (D_ERROR); } } @@ -112,7 +112,7 @@ rcsdiff_main(int argc, char **argv) if (argc == 0) { warnx("no input file"); (usage)(); - exit(1); + exit(D_ERROR); } for (i = 0; i < argc; i++) { -- cgit v1.2.3