summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/admin.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-04-11 17:56:28 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-04-11 17:56:28 +0000
commiteb59e47dab6845274f3615340270c3f03e173d92 (patch)
tree305efb5759a84deba4a22514a8e5f48076ee25c2 /usr.bin/cvs/admin.c
parent1bd73ba6c9a462466984f3d25296d75dbeb82c1e (diff)
remove EX_USAGE error codes
ok jfb@
Diffstat (limited to 'usr.bin/cvs/admin.c')
-rw-r--r--usr.bin/cvs/admin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/admin.c b/usr.bin/cvs/admin.c
index b7e5a415952..ee8decab952 100644
--- a/usr.bin/cvs/admin.c
+++ b/usr.bin/cvs/admin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: admin.c,v 1.8 2005/04/03 17:32:50 xsa Exp $ */
+/* $OpenBSD: admin.c,v 1.9 2005/04/11 17:56:27 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
@@ -111,7 +111,7 @@ cvs_admin_options(char *opt, int argc, char **argv, int *arg)
cvs_log(LP_ERR,
"invalid RCS keyword expansion mode");
rcs_kflag_usage();
- return (EX_USAGE);
+ return (1);
}
break;
case 'l':
@@ -151,7 +151,7 @@ cvs_admin_options(char *opt, int argc, char **argv, int *arg)
strictlock |= LOCK_REMOVE;
break;
default:
- return (EX_USAGE);
+ return (1);
}
}
@@ -168,7 +168,7 @@ cvs_admin_options(char *opt, int argc, char **argv, int *arg)
if ((rcs = rcsnum_parse(lockrev_arg)) == NULL) {
cvs_log(LP_ERR, "%s is not a numeric branch",
lockrev_arg);
- return (EX_USAGE);
+ return (1);
}
rcsnum_free(rcs);
}
@@ -185,7 +185,7 @@ cvs_admin_options(char *opt, int argc, char **argv, int *arg)
if (replace_msg != NULL) {
if ((q = strchr(replace_msg, ':')) == NULL) {
cvs_log(LP_ERR, "invalid option for -m");
- return (EX_USAGE);
+ return (1);
}
*q = '\0';
if ((rcs = rcsnum_parse(replace_msg)) == NULL) {