summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/tag.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-04-03 17:32:51 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-04-03 17:32:51 +0000
commit5084bac86a0c29797507aafc3a1f283df9a435e8 (patch)
tree14a72622e2e38c0d13ad93871a7f519329b15823 /usr.bin/cvs/tag.c
parent3edfba4e92c860e5173084d804678f462b212ef9 (diff)
first round of EX_* exit codes removal; ok joris@.
Diffstat (limited to 'usr.bin/cvs/tag.c')
-rw-r--r--usr.bin/cvs/tag.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/cvs/tag.c b/usr.bin/cvs/tag.c
index d7d44adeab9..7433472be83 100644
--- a/usr.bin/cvs/tag.c
+++ b/usr.bin/cvs/tag.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tag.c,v 1.7 2005/03/30 17:43:04 joris Exp $ */
+/* $OpenBSD: tag.c,v 1.8 2005/04/03 17:32:50 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2004 Joris Vink <joris@openbsd.org>
@@ -124,25 +124,25 @@ int
cvs_tag_sendflags(struct cvsroot *root)
{
if (branch && (cvs_sendarg(root, "-b", 0) < 0))
- return (EX_PROTOCOL);
+ return (-1);
if (delete && (cvs_sendarg(root, "-d", 0) < 0))
- return (EX_PROTOCOL);
+ return (-1);
if (old_tag) {
if ((cvs_sendarg(root, "-r", 0) < 0) ||
(cvs_sendarg(root, old_tag, 0) < 0))
- return (EX_PROTOCOL);
+ return (-1);
}
if (date) {
if ((cvs_sendarg(root, "-D", 0) < 0) ||
(cvs_sendarg(root, date, 0) < 0))
- return (EX_PROTOCOL);
+ return (-1);
}
if (cvs_sendarg(root, tag, 0) < 0)
- return (EX_PROTOCOL);
+ return (-1);
return (0);
}