Use MOPT_END in favor of MOPT_NULL, which better describes the purporse

of the macro.
This commit is contained in:
delphij 2005-06-10 09:51:43 +00:00
parent aaea0db099
commit 5173bfd387
16 changed files with 17 additions and 17 deletions

View File

@ -65,8 +65,8 @@ 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 }
/* A handy macro as terminator of MNT_ array. */
#define MOPT_END { NULL, 0, 0, 0 }
#define MOPT_FSTAB_COMPAT \
MOPT_RO, \

View File

@ -64,7 +64,7 @@ static struct mntopt mopts[] = {
MOPT_SYNC,
MOPT_UPDATE,
MOPT_SNAPSHOT,
MOPT_NULL
MOPT_END
};
int

View File

@ -77,7 +77,7 @@ struct mntopt mopts[] = {
{ "rrip", 1, ISOFSMNT_NORRIP, 1 },
{ "joliet", 1, ISOFSMNT_NOJOLIET, 1 },
{ "strictjoliet", 1, ISOFSMNT_BROKENJOLIET, 1 },
MOPT_NULL
MOPT_END
};
int get_ssector(const char *dev);

View File

@ -60,7 +60,7 @@ struct mntopt mopts[] = {
MOPT_FORCE,
MOPT_SYNC,
MOPT_UPDATE,
MOPT_NULL
MOPT_END
};
static void usage(void) __dead2;

View File

@ -50,7 +50,7 @@
static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
MOPT_END
};
static gid_t a_gid(char *);

View File

@ -73,7 +73,7 @@ static struct mntopt mopts[] = {
{ "shortnames", 0, MSDOSFSMNT_SHORTNAME, 1 },
{ "longnames", 0, MSDOSFSMNT_LONGNAME, 1 },
{ "nowin95", 0, MSDOSFSMNT_NOWIN95, 1 },
MOPT_NULL
MOPT_END
};
static gid_t a_gid(char *);

View File

@ -121,7 +121,7 @@ struct mntopt mopts[] = {
{ "lockd", 1, ALTF_NOLOCKD, 1 },
{ "inet4", 1, ALTF_NOINET4, 1 },
{ "inet6", 1, ALTF_NOINET6, 1 },
MOPT_NULL
MOPT_END
};
struct nfs_args nfsdefargs = {

View File

@ -151,7 +151,7 @@ struct mntopt mopts[] = {
{ "lockd", 1, ALTF_NOLOCKD, 1 },
{ "inet4", 1, ALTF_NOINET4, 1 },
{ "inet6", 1, ALTF_NOINET6, 1 },
MOPT_NULL
MOPT_END
};
struct nfs_args nfsdefargs = {

View File

@ -58,7 +58,7 @@
static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
MOPT_END
};
static gid_t a_gid(char *);

View File

@ -59,7 +59,7 @@ static const char rcsid[] =
struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
MOPT_END
};
int subdir(const char *, const char *);

View File

@ -41,7 +41,7 @@
struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
MOPT_END
};
void usage(void);

View File

@ -59,7 +59,7 @@ static const char rcsid[] =
static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
MOPT_END
};
static char *fsname;

View File

@ -64,7 +64,7 @@
struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_UPDATE,
MOPT_NULL
MOPT_END
};
int set_charset(char **, char **, const char *);

View File

@ -61,7 +61,7 @@ struct mntopt mopts[] = {
MOPT_SYNC,
MOPT_UPDATE,
MOPT_SNAPSHOT,
MOPT_NULL
MOPT_END
};
void usage(void);

View File

@ -79,7 +79,7 @@ static const char rcsid[] =
static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
MOPT_END
};
static void usage(void) __dead2;

View File

@ -60,7 +60,7 @@ static const char rcsid[] =
static struct mntopt mopts[] = {
MOPT_STDOPTS,
MOPT_NULL
MOPT_END
};
static int subdir(const char *, const char *);