diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-30 17:58:48 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-30 17:58:48 +0000 |
commit | 4401a63ec9155a6c4b79ea25534ba711d0a8d997 (patch) | |
tree | 1e55bf3bb2aa3a0f5c04447ed632ddf4e388c0c7 | |
parent | 197de0d6d149ddaab539b1439f2670daffb5116f (diff) |
strerror() -> rcs_errstr() when passing rcs_errno as argument;
-rw-r--r-- | usr.bin/cvs/admin.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/annotate.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/checkout.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/diff.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/getlog.c | 4 | ||||
-rw-r--r-- | usr.bin/cvs/import.c | 10 | ||||
-rw-r--r-- | usr.bin/cvs/status.c | 4 |
7 files changed, 17 insertions, 17 deletions
diff --git a/usr.bin/cvs/admin.c b/usr.bin/cvs/admin.c index 2fdc992e838..2c408c46b96 100644 --- a/usr.bin/cvs/admin.c +++ b/usr.bin/cvs/admin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: admin.c,v 1.27 2006/01/27 15:26:38 xsa Exp $ */ +/* $OpenBSD: admin.c,v 1.28 2006/01/30 17:58:47 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * Copyright (c) 2005 Joris Vink <joris@openbsd.org> @@ -360,7 +360,7 @@ cvs_admin_local(CVSFILE *cf, void *arg) if ((rf = rcs_open(rcspath, RCS_RDWR)) == NULL) fatal("cvs_admin_local: rcs_open `%s': %s", rcspath, - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); if (!RCS_KWEXP_INVAL(kflag)) ret = rcs_kwexp_set(rf, kflag); diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index aa80ec8d8be..7f7b6855eca 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.28 2006/01/27 15:26:38 xsa Exp $ */ +/* $OpenBSD: annotate.c,v 1.29 2006/01/30 17:58:47 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -172,7 +172,7 @@ cvs_annotate_local(CVSFILE *cf, void *arg) if ((rf = rcs_open(rcspath, RCS_READ)) == NULL) fatal("cvs_annotate_local: rcs_open `%s': %s", rcspath, - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); cvs_printf("Annotations for %s", cf->cf_name); cvs_printf("\n***************\n"); diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index fbd907f0f28..96781faab37 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.48 2006/01/27 12:56:28 xsa Exp $ */ +/* $OpenBSD: checkout.c,v 1.49 2006/01/30 17:58:47 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -335,7 +335,7 @@ cvs_checkout_local(CVSFILE *cf, void *arg) if ((rf = rcs_open(rcspath, RCS_READ)) == NULL) fatal("cvs_checkout_local: rcs_open `%s': %s", rcspath, - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); if (cvs_checkout_rev(rf, rf->rf_head, cf, fpath, (cvs_cmdop != CVS_OP_SERVER) ? 1 : 0, diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 3fce160672d..5b1bb62a748 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.78 2006/01/27 15:26:38 xsa Exp $ */ +/* $OpenBSD: diff.c,v 1.79 2006/01/30 17:58:47 xsa Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. @@ -574,7 +574,7 @@ cvs_diff_local(CVSFILE *cf, void *arg) if ((rf = rcs_open(rcspath, RCS_READ)) == NULL) fatal("cvs_diff_local: rcs_open `%s': %s", rcspath, - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); cvs_printf("Index: %s\n%s\nRCS file: %s\n", diff_file, RCS_DIFF_DIV, rcspath); diff --git a/usr.bin/cvs/getlog.c b/usr.bin/cvs/getlog.c index e6114f61fcf..f2a38f7a010 100644 --- a/usr.bin/cvs/getlog.c +++ b/usr.bin/cvs/getlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getlog.c,v 1.53 2006/01/29 11:09:45 xsa Exp $ */ +/* $OpenBSD: getlog.c,v 1.54 2006/01/30 17:58:47 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -225,7 +225,7 @@ cvs_getlog_local(CVSFILE *cf, void *arg) if ((rf = rcs_open(rcspath, RCS_READ|RCS_PARSE_FULLY)) == NULL) fatal("cvs_getlog_local: rcs_open `%s': %s", rcspath, - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); cvs_printf("\nRCS file: %s", rcspath); cvs_printf("\nWorking file: %s", cf->cf_name); diff --git a/usr.bin/cvs/import.c b/usr.bin/cvs/import.c index 0f08c357215..f3693584856 100644 --- a/usr.bin/cvs/import.c +++ b/usr.bin/cvs/import.c @@ -1,4 +1,4 @@ -/* $OpenBSD: import.c,v 1.37 2006/01/27 10:39:49 xsa Exp $ */ +/* $OpenBSD: import.c,v 1.38 2006/01/30 17:58:47 xsa Exp $ */ /* * Copyright (c) 2004 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -282,7 +282,7 @@ cvs_import_local(CVSFILE *cf, void *arg) if ((rf = rcs_open(rpath, RCS_RDWR|RCS_CREATE)) == NULL); fatal("cvs_import_local: rcs_open: `%s': %s", rpath, - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); comment = rcs_comment_lookup(cf->cf_name); if ((comment != NULL) && (rcs_comment_set(rf, comment) < 0)) { @@ -301,7 +301,7 @@ cvs_import_local(CVSFILE *cf, void *arg) if (rcs_sym_add(rf, release, rev) < 0) { (void)unlink(rpath); fatal("cvs_import_local: rcs_sym_add failed: %s", - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); } rcsnum_cpy(imp_brnum, rev, 2); @@ -320,13 +320,13 @@ cvs_import_local(CVSFILE *cf, void *arg) if (rcs_branch_set(rf, imp_brnum) < 0) { (void)unlink(rpath); fatal("cvs_import_local: rcs_branch_set failed: %s", - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); } if (rcs_sym_add(rf, vendor, imp_brnum) < 0) { (void)unlink(rpath); fatal("cvs_import_local: rcs_sym_add failed: %s", - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); } if ((bp = cvs_buf_load(fpath, BUF_AUTOEXT)) == NULL) { diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c index 306a8569f57..ad0f7c4edc6 100644 --- a/usr.bin/cvs/status.c +++ b/usr.bin/cvs/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.53 2006/01/27 15:26:38 xsa Exp $ */ +/* $OpenBSD: status.c,v 1.54 2006/01/30 17:58:47 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> @@ -174,7 +174,7 @@ cvs_status_local(CVSFILE *cf, void *arg) cf->cf_cvstat != CVS_FST_ADDED) { if ((rf = rcs_open(rcspath, RCS_READ)) == NULL) fatal("cvs_status_local: rcs_open `%s': %s", rcspath, - strerror(rcs_errno)); + rcs_errstr(rcs_errno)); } buf[0] = '\0'; |