diff options
author | Xin LI <delphij@FreeBSD.org> | 2005-06-01 09:39:36 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2005-06-01 09:39:36 +0000 |
commit | 73ac45052f0c9d5ff55352ce80a0cec86b831908 (patch) | |
tree | 4c7df792f9460a2623bdeb425db125d58aaff586 /sbin/mount_std | |
parent | 7a3afb563cd3501ecdc30c70d0e3a4a4a28e07b9 (diff) | |
download | src-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_std')
-rw-r--r-- | sbin/mount_std/mount_std.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount_std/mount_std.c b/sbin/mount_std/mount_std.c index 11f42c16e44a..601cab4b1a24 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; |