Module Name:    src
Committed By:   andvar
Date:           Fri Jul 16 12:09:36 UTC 2021

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

Log Message:
Remove commented code, including empty if block. Replace tab with whitespace in 
usage declaration.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/mount_chfs/mount_chfs.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_chfs/mount_chfs.c
diff -u src/sbin/mount_chfs/mount_chfs.c:1.4 src/sbin/mount_chfs/mount_chfs.c:1.5
--- src/sbin/mount_chfs/mount_chfs.c:1.4	Mon Jun  7 21:44:35 2021
+++ src/sbin/mount_chfs/mount_chfs.c	Fri Jul 16 12:09:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount_chfs.c,v 1.4 2021/06/07 21:44:35 dholland Exp $	*/
+/*	$NetBSD: mount_chfs.c,v 1.5 2021/07/16 12:09:36 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -61,7 +61,7 @@ static const struct mntopt mopts[] = {
 
 /* --------------------------------------------------------------------- */
 
-static void	usage(void) __dead;
+static void usage(void) __dead;
 
 /* --------------------------------------------------------------------- */
 
@@ -98,7 +98,6 @@ mount_chfs_parseargs(int argc, char *arg
 	if (argc != 2)
 		usage();
 
-	//strlcpy(canon_dev, argv[0], MAXPATHLEN);
 	pathadj(argv[0], canon_dev);
 	pathadj(argv[1], canon_dir);
 
@@ -137,11 +136,6 @@ mount_chfs(int argc, char *argv[])
 		err(EXIT_FAILURE, "chfs on %s", fs_name);
 	}
 
-	if (mntflags & MNT_GETARGS) {
-
-		//(void)printf("flash index=%d\n",  args.fl_index);
-	}
-
 	return EXIT_SUCCESS;
 }
 

Reply via email to