Source-Changes-HG archive

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

[src/trunk]: src/sbin/mount_chfs mount_chfs(8): Remove some vestiges of chewi...



details:   https://anonhg.NetBSD.org/src/rev/41331f9fa1e9
branches:  trunk
changeset: 379534:41331f9fa1e9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Jun 04 22:41:36 2021 +0000

description:
mount_chfs(8): Remove some vestiges of chewiefs name.

Add RCS id while here and nix some needless whitespace.

No functional change intended.

Patch from Andrius V.

diffstat:

 sbin/mount_chfs/mount_chfs.c |   5 ++---
 sbin/mount_chfs/mount_chfs.h |  13 +++++++------
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (56 lines):

diff -r b6fb3d342d25 -r 41331f9fa1e9 sbin/mount_chfs/mount_chfs.c
--- a/sbin/mount_chfs/mount_chfs.c      Fri Jun 04 22:39:41 2021 +0000
+++ b/sbin/mount_chfs/mount_chfs.c      Fri Jun 04 22:41:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_chfs.c,v 1.2 2013/09/13 21:03:29 joerg Exp $     */
+/*     $NetBSD: mount_chfs.c,v 1.3 2021/06/04 22:41:36 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -116,12 +116,11 @@ mount_chfs(int argc, char *argv[])
        struct ufs_args args;
        char canon_dev[MAXPATHLEN], fs_name[MAXPATHLEN];
        int mntflags;
-       
 
        mount_chfs_parseargs(argc, argv, &args, &mntflags,
            canon_dev, fs_name);
 
-       if (mount(MOUNT_CHEWIEFS, fs_name, mntflags, &args, sizeof args) == -1) {
+       if (mount(MOUNT_CHFS, fs_name, mntflags, &args, sizeof args) == -1) {
                err(EXIT_FAILURE, "chfs on %s", fs_name);
        }
 
diff -r b6fb3d342d25 -r 41331f9fa1e9 sbin/mount_chfs/mount_chfs.h
--- a/sbin/mount_chfs/mount_chfs.h      Fri Jun 04 22:39:41 2021 +0000
+++ b/sbin/mount_chfs/mount_chfs.h      Fri Jun 04 22:41:36 2021 +0000
@@ -1,3 +1,5 @@
+/*     $NetBSD: mount_chfs.h,v 1.2 2021/06/04 22:41:36 riastradh Exp $ */
+
 /*
  * Copyright (c) 2008 The NetBSD Foundation.  All Rights Reserved.
  *
@@ -23,18 +25,17 @@
  * SUCH DAMAGE.
  */
 
-#ifndef _SBIN_MOUNT_CHEWIEFS_MOUNT_CHEWIEFS_H_
-#define _SBIN_MOUNT_CHEWIEFS_MOUNT_CHEWIEFS_H_
+#ifndef _SBIN_MOUNT_CHFS_MOUNT_CHFS_H_
+#define _SBIN_MOUNT_CHFS_MOUNT_CHFS_H_
 
 #include <ufs/ufs/ufsmount.h>
 
-#ifndef MOUNT_CHEWIEFS
-#define MOUNT_CHEWIEFS "chfs"
+#ifndef MOUNT_CHFS
+#define MOUNT_CHFS "chfs"
 #endif
 
-
 int     mount_chfs(int, char **);
 void mount_chfs_parseargs(int, char **, struct ufs_args *, int *,
     char *, char *);
 
-#endif /* _SBIN_MOUNT_CHEWIEFS_MOUNT_CHEWIEFS_H_ */
+#endif /* _SBIN_MOUNT_CHFS_MOUNT_CHFS_H_ */



Home | Main Index | Thread Index | Old Index