aboutsummaryrefslogtreecommitdiff
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
parent7a3afb563cd3501ecdc30c70d0e3a4a4a28e07b9 (diff)
Notes
-rw-r--r--sbin/mount/mntopts.h3
-rw-r--r--sbin/mount/mount_ufs.c2
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c2
-rw-r--r--sbin/mount_ext2fs/mount_ext2fs.c2
-rw-r--r--sbin/mount_hpfs/mount_hpfs.c2
-rw-r--r--sbin/mount_msdosfs/mount_msdosfs.c2
-rw-r--r--sbin/mount_nfs/mount_nfs.c2
-rw-r--r--sbin/mount_nfs4/mount_nfs4.c2
-rw-r--r--sbin/mount_ntfs/mount_ntfs.c2
-rw-r--r--sbin/mount_nullfs/mount_nullfs.c2
-rw-r--r--sbin/mount_reiserfs/mount_reiserfs.c2
-rw-r--r--sbin/mount_std/mount_std.c2
-rw-r--r--sbin/mount_udf/mount_udf.c2
-rw-r--r--sbin/mount_ufs/mount_ufs.c2
-rw-r--r--sbin/mount_umapfs/mount_umapfs.c2
-rw-r--r--sbin/mount_unionfs/mount_unionfs.c2
16 files changed, 18 insertions, 15 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 5205195fd3f19..8b8e1fbf5ce89 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, \
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c
index ff1c126b63900..e18247b238604 100644
--- a/sbin/mount/mount_ufs.c
+++ b/sbin/mount/mount_ufs.c
@@ -64,7 +64,7 @@ static struct mntopt mopts[] = {
MOPT_SYNC,
MOPT_UPDATE,
MOPT_SNAPSHOT,
- { NULL }
+ MOPT_NULL
};
int
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c
index a1a11f986fe21..4a6461a6b64da 100644
--- a/sbin/mount_cd9660/mount_cd9660.c
+++ b/sbin/mount_cd9660/mount_cd9660.c
@@ -77,7 +77,7 @@ struct mntopt mopts[] = {
{ "rrip", 1, ISOFSMNT_NORRIP, 1 },
{ "joliet", 1, ISOFSMNT_NOJOLIET, 1 },
{ "strictjoliet", 1, ISOFSMNT_BROKENJOLIET, 1 },
- { NULL }
+ MOPT_NULL
};
int get_ssector(const char *dev);
diff --git a/sbin/mount_ext2fs/mount_ext2fs.c b/sbin/mount_ext2fs/mount_ext2fs.c
index 4c7c401821fc1..a74a5d72fdf45 100644
--- a/sbin/mount_ext2fs/mount_ext2fs.c
+++ b/sbin/mount_ext2fs/mount_ext2fs.c
@@ -60,7 +60,7 @@ struct mntopt mopts[] = {
MOPT_FORCE,
MOPT_SYNC,
MOPT_UPDATE,
- { NULL }
+ MOPT_NULL
};
static void usage(void) __dead2;
diff --git a/sbin/mount_hpfs/mount_hpfs.c b/sbin/mount_hpfs/mount_hpfs.c
index 95986f13fa0b1..150dfd1313a64 100644
--- a/sbin/mount_hpfs/mount_hpfs.c
+++ b/sbin/mount_hpfs/mount_hpfs.c
@@ -50,7 +50,7 @@
static struct mntopt mopts[] = {
MOPT_STDOPTS,
- { NULL }
+ MOPT_NULL
};
static gid_t a_gid(char *);
diff --git a/sbin/mount_msdosfs/mount_msdosfs.c b/sbin/mount_msdosfs/mount_msdosfs.c
index 58551d37e2123..d5557bba4f5c2 100644
--- a/sbin/mount_msdosfs/mount_msdosfs.c
+++ b/sbin/mount_msdosfs/mount_msdosfs.c
@@ -73,7 +73,7 @@ static struct mntopt mopts[] = {
{ "shortnames", 0, MSDOSFSMNT_SHORTNAME, 1 },
{ "longnames", 0, MSDOSFSMNT_LONGNAME, 1 },
{ "nowin95", 0, MSDOSFSMNT_NOWIN95, 1 },
- { NULL }
+ MOPT_NULL
};
static gid_t a_gid(char *);
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index 0e9957722a089..4af2d65955867 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -121,7 +121,7 @@ struct mntopt mopts[] = {
{ "lockd", 1, ALTF_NOLOCKD, 1 },
{ "inet4", 1, ALTF_NOINET4, 1 },
{ "inet6", 1, ALTF_NOINET6, 1 },
- { NULL }
+ MOPT_NULL
};
struct nfs_args nfsdefargs = {
diff --git a/sbin/mount_nfs4/mount_nfs4.c b/sbin/mount_nfs4/mount_nfs4.c
index b1ad123a446a5..683fb93276abd 100644
--- a/sbin/mount_nfs4/mount_nfs4.c
+++ b/sbin/mount_nfs4/mount_nfs4.c
@@ -151,7 +151,7 @@ struct mntopt mopts[] = {
{ "lockd", 1, ALTF_NOLOCKD, 1 },
{ "inet4", 1, ALTF_NOINET4, 1 },
{ "inet6", 1, ALTF_NOINET6, 1 },
- { NULL }
+ MOPT_NULL
};
struct nfs_args nfsdefargs = {
diff --git a/sbin/mount_ntfs/mount_ntfs.c b/sbin/mount_ntfs/mount_ntfs.c
index 54bb38e0d4241..49db87dc92e78 100644
--- a/sbin/mount_ntfs/mount_ntfs.c
+++ b/sbin/mount_ntfs/mount_ntfs.c
@@ -58,7 +58,7 @@
static struct mntopt mopts[] = {
MOPT_STDOPTS,
- { NULL }
+ MOPT_NULL
};
static gid_t a_gid(char *);
diff --git a/sbin/mount_nullfs/mount_nullfs.c b/sbin/mount_nullfs/mount_nullfs.c
index 0c947a923ecb5..8fefe1616952a 100644
--- a/sbin/mount_nullfs/mount_nullfs.c
+++ b/sbin/mount_nullfs/mount_nullfs.c
@@ -59,7 +59,7 @@ static const char rcsid[] =
struct mntopt mopts[] = {
MOPT_STDOPTS,
- { NULL }
+ MOPT_NULL
};
int subdir(const char *, const char *);
diff --git a/sbin/mount_reiserfs/mount_reiserfs.c b/sbin/mount_reiserfs/mount_reiserfs.c
index 90f8731093334..34dc46353c48d 100644
--- a/sbin/mount_reiserfs/mount_reiserfs.c
+++ b/sbin/mount_reiserfs/mount_reiserfs.c
@@ -41,7 +41,7 @@
struct mntopt mopts[] = {
MOPT_STDOPTS,
- { NULL }
+ MOPT_NULL
};
void usage(void);
diff --git a/sbin/mount_std/mount_std.c b/sbin/mount_std/mount_std.c
index 11f42c16e44a5..601cab4b1a24a 100644
--- a/sbin/mount_std/mount_std.c
+++ b/sbin/mount_std/mount_std.c
@@ -59,7 +59,7 @@ static const char rcsid[] =
static struct mntopt mopts[] = {
MOPT_STDOPTS,
- { NULL }
+ MOPT_NULL
};
static char *fsname;
diff --git a/sbin/mount_udf/mount_udf.c b/sbin/mount_udf/mount_udf.c
index 080fab8d19993..4c8dbef59ac86 100644
--- a/sbin/mount_udf/mount_udf.c
+++ b/sbin/mount_udf/mount_udf.c
@@ -64,7 +64,7 @@
struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_UPDATE,
- { NULL, 0, 0, 0 }
+ MOPT_NULL
};
int set_charset(char **, char **, const char *);
diff --git a/sbin/mount_ufs/mount_ufs.c b/sbin/mount_ufs/mount_ufs.c
index ff8ab9dd716e6..6043b1f049cdc 100644
--- a/sbin/mount_ufs/mount_ufs.c
+++ b/sbin/mount_ufs/mount_ufs.c
@@ -61,7 +61,7 @@ struct mntopt mopts[] = {
MOPT_SYNC,
MOPT_UPDATE,
MOPT_SNAPSHOT,
- { NULL }
+ MOPT_NULL
};
void usage(void);
diff --git a/sbin/mount_umapfs/mount_umapfs.c b/sbin/mount_umapfs/mount_umapfs.c
index c7315be9a3c90..eb932fa6802e2 100644
--- a/sbin/mount_umapfs/mount_umapfs.c
+++ b/sbin/mount_umapfs/mount_umapfs.c
@@ -79,7 +79,7 @@ static const char rcsid[] =
static struct mntopt mopts[] = {
MOPT_STDOPTS,
- { NULL }
+ MOPT_NULL
};
static void usage(void) __dead2;
diff --git a/sbin/mount_unionfs/mount_unionfs.c b/sbin/mount_unionfs/mount_unionfs.c
index 6d67bef9b499e..9c541c6d37afe 100644
--- a/sbin/mount_unionfs/mount_unionfs.c
+++ b/sbin/mount_unionfs/mount_unionfs.c
@@ -60,7 +60,7 @@ static const char rcsid[] =
static struct mntopt mopts[] = {
MOPT_STDOPTS,
- { NULL }
+ MOPT_NULL
};
static int subdir(const char *, const char *);