summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2006-04-01 20:11:25 +0000
committerjoris <joris@openbsd.org>2006-04-01 20:11:25 +0000
commitec6ed1ab1769975d1495b2870472c00ec4d924fa (patch)
treecd5b3c20a71e4b81d73fcdf2ed01252cd12736e2 /usr.bin/cvs/commit.c
parentwhen I initially hacked sensorsd, sensors started at hw.sensors.0 and (diff)
downloadwireguard-openbsd-ec6ed1ab1769975d1495b2870472c00ec4d924fa.tar.xz
wireguard-openbsd-ec6ed1ab1769975d1495b2870472c00ec4d924fa.zip
fix some bugs that lint discovered for us.
ok niallo@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index e1a8970fe69..757fa80e5ec 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.52 2006/03/16 09:06:19 xsa Exp $ */
+/* $OpenBSD: commit.c,v 1.53 2006/04/01 20:11:25 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -221,10 +221,9 @@ cvs_commit_prepare(CVSFILE *cf, void *arg)
int
cvs_commit_remote(CVSFILE *cf, void *arg)
{
- char *repo, fpath[MAXPATHLEN];
+ char fpath[MAXPATHLEN];
struct cvsroot *root;
- repo = NULL;
root = CVS_DIR_ROOT(cf);
if (cf->cf_type == DT_DIR) {
@@ -235,9 +234,6 @@ cvs_commit_remote(CVSFILE *cf, void *arg)
cvs_file_getpath(cf, fpath, sizeof(fpath));
- if (cf->cf_parent != NULL)
- repo = cf->cf_parent->cf_repo;
-
if ((cf->cf_cvstat == CVS_FST_ADDED) ||
(cf->cf_cvstat == CVS_FST_MODIFIED) ||
(cf->cf_cvstat == CVS_FST_REMOVED)) {