summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/add.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/add.c')
-rw-r--r--usr.bin/cvs/add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c
index 869c7389258..eee2dd4f5f3 100644
--- a/usr.bin/cvs/add.c
+++ b/usr.bin/cvs/add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: add.c,v 1.15 2005/03/30 17:43:04 joris Exp $ */
+/* $OpenBSD: add.c,v 1.16 2005/04/03 17:32:50 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -80,7 +80,7 @@ cvs_add_options(char *opt, int argc, char **argv, int *arg)
case 'm':
if ((cvs_msg = strdup(optarg)) == NULL) {
cvs_log(LP_ERRNO, "failed to copy message");
- return (EX_DATAERR);
+ return (-1);
}
break;
default:
@@ -101,7 +101,7 @@ cvs_add_sendflags(struct cvsroot *root)
strlcpy(buf, "-k", sizeof(buf));
strlcat(buf, koptstr, sizeof(buf));
if (cvs_sendarg(root, buf, 0) < 0)
- return (EX_PROTOCOL);
+ return (-1);
}
return (0);