From b904ba2eadb023548fd86f69b3daa9508a4b7678 Mon Sep 17 00:00:00 2001 From: joris Date: Fri, 22 Jul 2005 16:27:29 +0000 Subject: use the cf_name field of the CVSFILE struct instead of using the old CVS_FILE_NAME macro. This macro used to be nifty because of all the referencing for the names, but since we don't do that anymore and use cf_name directly... byebye CVS_FILE_NAME() okay xsa@ --- usr.bin/cvs/commit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index f837ecdf442..24e47e91efa 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.41 2005/07/19 00:32:26 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.42 2005/07/22 16:27:29 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -146,7 +146,7 @@ cvs_commit_pre_exec(struct cvsroot *root) } if (cvs_msg == NULL) - cvs_msg = cvs_logmsg_get(CVS_FILE_NAME(tmp), + cvs_msg = cvs_logmsg_get(tmp->cf_name, NULL, &cl, NULL); cvs_file_free(tmp); @@ -245,10 +245,8 @@ cvs_commit_remote(CVSFILE *cf, void *arg) if (cf->cf_cvstat == CVS_FST_REMOVED) return (0); - if (cvs_sendreq(root, CVS_REQ_MODIFIED, - CVS_FILE_NAME(cf)) < 0) { + if (cvs_sendreq(root, CVS_REQ_MODIFIED, cf->cf_name) < 0) return (CVS_EX_PROTO); - } if (cvs_sendfile(root, fpath) < 0) { return (CVS_EX_PROTO); -- cgit v1.2.3-59-g8ed1b