From c24047097b7c4a4d26e97f5a05c484fe89b170f0 Mon Sep 17 00:00:00 2001 From: xsa Date: Sun, 3 Apr 2005 17:32:50 +0000 Subject: first round of EX_* exit codes removal; ok joris@. --- usr.bin/cvs/commit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/cvs/commit.c') 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 * 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); } -- cgit v1.2.3-59-g8ed1b