summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index ad9f788ce6f..b9b5ba5434b 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.19 2005/03/31 15:10:51 joris Exp $ */
+/* $OpenBSD: commit.c,v 1.20 2005/04/03 17:32:50 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -81,7 +81,7 @@ cvs_commit_options(char *opt, int argc, char **argv, int *arg)
cvs_msg = strdup(optarg);
if (cvs_msg == NULL) {
cvs_log(LP_ERRNO, "failed to copy message");
- return (EX_DATAERR);
+ return (-1);
}
break;
case 'R':
@@ -98,7 +98,7 @@ cvs_commit_options(char *opt, int argc, char **argv, int *arg)
}
if ((mfile != NULL) && (cvs_msg = cvs_logmsg_open(mfile)) == NULL)
- return (EX_DATAERR);
+ return (-1);
*arg = optind;
return (0);
@@ -126,7 +126,7 @@ cvs_commit_helper(void)
}
if (cvs_msg == NULL)
- return (1);
+ return (-1);
return (0);
}