aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-06-01 09:39:36 +0000
committerXin LI <delphij@FreeBSD.org>2005-06-01 09:39:36 +0000
commit73ac45052f0c9d5ff55352ce80a0cec86b831908 (patch)
tree4c7df792f9460a2623bdeb425db125d58aaff586 /sbin/mount/mntopts.h
parent7a3afb563cd3501ecdc30c70d0e3a4a4a28e07b9 (diff)
downloadsrc-73ac45052f0c9d5ff55352ce80a0cec86b831908.tar.gz
src-73ac45052f0c9d5ff55352ce80a0cec86b831908.zip
Add a handy macro to represent null mount option, MOPT_NULL, and make
use of the macro in sbin/mount*'s, by replacing: mopts[] = { MOPT_STDOPTS, { NULL } } With: mopts[] = { MOPT_STDOPTS, MOPT_NULL } This change will help to reduce the situation that we don't explicitly initialize "struct mntopt"'s. It should not contribute to any functional/logical changes as far as I can tell.
Notes
Notes: svn path=/head/; revision=146853
Diffstat (limited to 'sbin/mount/mntopts.h')
-rw-r--r--sbin/mount/mntopts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 5205195fd3f1..8b8e1fbf5ce8 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -65,6 +65,9 @@ struct mntopt {
/* This is parsed by mount(8), but is ignored by specific mount_*(8)s. */
#define MOPT_AUTO { "auto", 0, 0, 0 }
+/* A handy macro as terminator of MNT_ array */
+#define MOPT_NULL { NULL, 0, 0, 0 }
+
#define MOPT_FSTAB_COMPAT \
MOPT_RO, \
MOPT_RW, \