Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount_chfs Remove commented code, including empty if bl...



details:   https://anonhg.NetBSD.org/src/rev/92525ec6515d
branches:  trunk
changeset: 984681:92525ec6515d
user:      andvar <andvar%NetBSD.org@localhost>
date:      Fri Jul 16 12:09:36 2021 +0000

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

diffstat:

 sbin/mount_chfs/mount_chfs.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r 8e0e1abdeeac -r 92525ec6515d sbin/mount_chfs/mount_chfs.c
--- a/sbin/mount_chfs/mount_chfs.c      Fri Jul 16 10:02:50 2021 +0000
+++ b/sbin/mount_chfs/mount_chfs.c      Fri Jul 16 12:09:36 2021 +0000
@@ -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 void    usage(void) __dead;
+static void usage(void) __dead;
 
 /* --------------------------------------------------------------------- */
 
@@ -98,7 +98,6 @@
        if (argc != 2)
                usage();
 
-       //strlcpy(canon_dev, argv[0], MAXPATHLEN);
        pathadj(argv[0], canon_dev);
        pathadj(argv[1], canon_dir);
 
@@ -137,11 +136,6 @@
                err(EXIT_FAILURE, "chfs on %s", fs_name);
        }
 
-       if (mntflags & MNT_GETARGS) {
-
-               //(void)printf("flash index=%d\n",  args.fl_index);
-       }
-
        return EXIT_SUCCESS;
 }
 



Home | Main Index | Thread Index | Old Index