summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/annotate.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-04-03 17:32:50 +0000
committerxsa <xsa@openbsd.org>2005-04-03 17:32:50 +0000
commitc24047097b7c4a4d26e97f5a05c484fe89b170f0 (patch)
treea736d5f96be981c1993deb19ff6cdf90430cbeab /usr.bin/cvs/annotate.c
parentyacc parser (diff)
downloadwireguard-openbsd-c24047097b7c4a4d26e97f5a05c484fe89b170f0.tar.xz
wireguard-openbsd-c24047097b7c4a4d26e97f5a05c484fe89b170f0.zip
first round of EX_* exit codes removal; ok joris@.
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r--usr.bin/cvs/annotate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c
index 37b3caeef37..499317090b7 100644
--- a/usr.bin/cvs/annotate.c
+++ b/usr.bin/cvs/annotate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: annotate.c,v 1.5 2005/03/30 17:43:04 joris Exp $ */
+/* $OpenBSD: annotate.c,v 1.6 2005/04/03 17:32:50 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -104,18 +104,18 @@ int
cvs_annotate_sendflags(struct cvsroot *root)
{
if (usehead && (cvs_sendarg(root, "-f", 0) < 0))
- return (EX_PROTOCOL);
+ return (-1);
if (rev != NULL) {
if ((cvs_sendarg(root, "-r", 0) < 0) ||
(cvs_sendarg(root, rev, 0) < 0))
- return (EX_PROTOCOL);
+ return (-1);
}
if (date != NULL) {
if ((cvs_sendarg(root, "-D", 0) < 0) ||
(cvs_sendarg(root, date, 0) < 0))
- return (EX_PROTOCOL);
+ return (-1);
}
return (0);