diff options
author | 2005-04-03 17:32:50 +0000 | |
---|---|---|
committer | 2005-04-03 17:32:50 +0000 | |
commit | c24047097b7c4a4d26e97f5a05c484fe89b170f0 (patch) | |
tree | a736d5f96be981c1993deb19ff6cdf90430cbeab /usr.bin/cvs/commit.c | |
parent | yacc parser (diff) | |
download | wireguard-openbsd-c24047097b7c4a4d26e97f5a05c484fe89b170f0.tar.xz wireguard-openbsd-c24047097b7c4a4d26e97f5a05c484fe89b170f0.zip |
first round of EX_* exit codes removal; ok joris@.
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 8 |
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); } |