Module Name:    src
Committed By:   christos
Date:           Sat Oct 19 17:04:41 UTC 2013

Modified Files:
        src/sbin/mount_lfs: mount_lfs.c

Log Message:
remove unused


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sbin/mount_lfs/mount_lfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/mount_lfs/mount_lfs.c
diff -u src/sbin/mount_lfs/mount_lfs.c:1.35 src/sbin/mount_lfs/mount_lfs.c:1.36
--- src/sbin/mount_lfs/mount_lfs.c:1.35	Fri Oct 18 21:09:58 2013
+++ src/sbin/mount_lfs/mount_lfs.c	Sat Oct 19 13:04:41 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount_lfs.c,v 1.35 2013/10/19 01:09:58 christos Exp $	*/
+/*	$NetBSD: mount_lfs.c,v 1.36 2013/10/19 17:04:41 christos Exp $	*/
 
 /*-
  * Copyright (c) 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993, 19
 #if 0
 static char sccsid[] = "@(#)mount_lfs.c	8.4 (Berkeley) 4/26/95";
 #else
-__RCSID("$NetBSD: mount_lfs.c,v 1.35 2013/10/19 01:09:58 christos Exp $");
+__RCSID("$NetBSD: mount_lfs.c,v 1.36 2013/10/19 17:04:41 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -151,7 +151,7 @@ mount_lfs(int argc, char *argv[])
 {
 	struct ufs_args args;
 	int mntflags;
-	int mntsize, oldflags, i;
+	int mntsize, i;
 	char fs_name[MAXPATHLEN], canon_dev[MAXPATHLEN];
 	struct statvfs *mntbuf;
 	const char *errcause;
@@ -163,13 +163,11 @@ mount_lfs(int argc, char *argv[])
 	 * performing the mount, so we can know whether to start or
 	 * kill the cleaner process below.
 	 */
-	oldflags = MNT_RDONLY; /* If not mounted, pretend r/o */
 	if (mntflags & MNT_UPDATE) {
 		if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
 			err(1, "getmntinfo");
 		for (i = 0; i < mntsize; i++) {
 			if (strcmp(mntbuf[i].f_mntfromname, args.fspec) == 0) {
-				oldflags = mntbuf[i].f_flag;
 				break;
 			}
 		}

Reply via email to