summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-07-22 15:34:06 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-07-22 15:34:06 +0000
commit9350b78deaab34094bda1ca9586d15b14f26325b (patch)
treeecae7f9ceb3cfa508cea192b2a539ae86d062ccb /usr.bin
parentbcd1e78ca272be770144269a16fab2027ea32b48 (diff)
minor tweaks, no functional change;
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/release.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/cvs/release.c b/usr.bin/cvs/release.c
index e548522a0c1..f28f1355902 100644
--- a/usr.bin/cvs/release.c
+++ b/usr.bin/cvs/release.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: release.c,v 1.14 2005/07/14 15:17:42 xsa Exp $ */
+/* $OpenBSD: release.c,v 1.15 2005/07/22 15:34:05 xsa Exp $ */
/*
* Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org>
* All rights reserved.
@@ -134,29 +134,29 @@ cvs_release_yesno(void)
* Returns 0 on success, or -1 on failure.
*/
static int
-cvs_release_dir(CVSFILE *cdir, void *arg)
+cvs_release_dir(CVSFILE *cf, void *arg)
{
FILE *fp;
int j, l;
size_t len;
char *wdir, cwd[MAXPATHLEN];
- char buf[256], cdpath[MAXPATHLEN], dpath[MAXPATHLEN];
- char updcmd[MAXPATHLEN]; /* XXX find a better size; malloc()?? */
+ char cdpath[MAXPATHLEN], dpath[MAXPATHLEN];
+ char buf[256], updcmd[1024];
struct stat st;
struct cvsroot *root;
j = 0; /* number of altered files in the working copy */
- root = CVS_DIR_ROOT(cdir);
+ root = CVS_DIR_ROOT(cf);
- cvs_file_getpath(cdir, dpath, sizeof(dpath));
+ cvs_file_getpath(cf, dpath, sizeof(dpath));
len = cvs_path_cat(dpath, CVS_PATH_CVSDIR, cdpath, sizeof(cdpath));
if (len >= sizeof(cdpath))
return (CVS_EX_DATA);
- if (cdir->cf_type == DT_DIR) {
- if (!strcmp(CVS_FILE_NAME(cdir), "."))
+ if (cf->cf_type == DT_DIR) {
+ if (!strcmp(CVS_FILE_NAME(cf), "."))
return (0);
else {
/* test if dir has CVS/ directory */