summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-05-30 07:39:22 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-05-30 07:39:22 +0000
commit69a76e3ea973edb04e00a6b1b1c17e35492cc1be (patch)
tree37a4c2be070d677ad64062827e8a0d0d2dbb8ced /usr.bin/cvs
parent1cbac91a53f37029ed1a11297918041d13a40086 (diff)
dont return CVS_EX_USAGE when not needed; ok joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/checkout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c
index 8279eafd8e1..e1683b06a7f 100644
--- a/usr.bin/cvs/checkout.c
+++ b/usr.bin/cvs/checkout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: checkout.c,v 1.25 2005/05/29 17:48:44 xsa Exp $ */
+/* $OpenBSD: checkout.c,v 1.26 2005/05/30 07:39:21 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -141,12 +141,12 @@ cvs_checkout_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg)
if (!statmod && (argc == 0)) {
cvs_log(LP_ERR,
"must specify at least one module or directory");
- return (CVS_EX_USAGE);
+ return (-1);
}
if (statmod && (argc > 0)) {
cvs_log(LP_ERR, "-c and -s must not get any arguments");
- return (CVS_EX_USAGE);
+ return (-1);
}
*arg = optind;