diff options
author | 2005-07-22 16:27:29 +0000 | |
---|---|---|
committer | 2005-07-22 16:27:29 +0000 | |
commit | b904ba2eadb023548fd86f69b3daa9508a4b7678 (patch) | |
tree | 5a9d93aa003076b2dbe2533412bed3b12bf5763a /usr.bin/cvs/commit.c | |
parent | minor tweaks, no functional change; (diff) | |
download | wireguard-openbsd-b904ba2eadb023548fd86f69b3daa9508a4b7678.tar.xz wireguard-openbsd-b904ba2eadb023548fd86f69b3daa9508a4b7678.zip |
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@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 8 |
1 files changed, 3 insertions, 5 deletions
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 <jfb@openbsd.org> * 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); |