From ec6ed1ab1769975d1495b2870472c00ec4d924fa Mon Sep 17 00:00:00 2001 From: joris Date: Sat, 1 Apr 2006 20:11:25 +0000 Subject: fix some bugs that lint discovered for us. ok niallo@ --- usr.bin/cvs/commit.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'usr.bin/cvs/commit.c') 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 * 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)) { -- cgit v1.2.3-59-g8ed1b