diff options
author | 2005-07-22 15:34:05 +0000 | |
---|---|---|
committer | 2005-07-22 15:34:05 +0000 | |
commit | 07672ffef39e3eef4c3c4ff7169510d48231a88f (patch) | |
tree | b4751509df36d746dcd998b4c1c845ac67cc3e0b | |
parent | for .de domains, we need to send more shit to the denic whois server so (diff) | |
download | wireguard-openbsd-07672ffef39e3eef4c3c4ff7169510d48231a88f.tar.xz wireguard-openbsd-07672ffef39e3eef4c3c4ff7169510d48231a88f.zip |
minor tweaks, no functional change;
-rw-r--r-- | usr.bin/cvs/release.c | 16 |
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 */ |