Module Name: src Committed By: ast Date: Sat Oct 5 08:06:35 UTC 2013
Modified Files: src/sbin/mount: mount.c Log Message: No code change: corrected spelling in comment, removed trailing white spaces. To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/sbin/mount/mount.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/mount/mount.c diff -u src/sbin/mount/mount.c:1.98 src/sbin/mount/mount.c:1.99 --- src/sbin/mount/mount.c:1.98 Thu Jan 24 17:53:49 2013 +++ src/sbin/mount/mount.c Sat Oct 5 08:06:35 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: mount.c,v 1.98 2013/01/24 17:53:49 christos Exp $ */ +/* $NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $ */ /* * Copyright (c) 1980, 1989, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19 #if 0 static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95"; #else -__RCSID("$NetBSD: mount.c,v 1.98 2013/01/24 17:53:49 christos Exp $"); +__RCSID("$NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $"); #endif #endif /* not lint */ @@ -85,7 +85,7 @@ static void prmount(struct statvfs *); __dead static void usage(void); -/* Map from mount otions to printable formats. */ +/* Map from mount options to printable formats. */ static const struct opt { int o_opt; int o_silent; @@ -352,7 +352,7 @@ hasopt(const char *mntopts, const char * } static int -mountfs(const char *vfstype, const char *spec, const char *name, +mountfs(const char *vfstype, const char *spec, const char *name, int flags, const char *options, const char *mntopts, int skipmounted, char *buf, size_t buflen) { @@ -579,7 +579,7 @@ prmount(struct statvfs *sfp) sfp->f_fstypename); flags = sfp->f_flag & MNT_VISFLAGMASK; - for (f = 0, o = optnames; flags && o < + for (f = 0, o = optnames; flags && o < &optnames[sizeof(optnames)/sizeof(optnames[0])]; o++) if (flags & o->o_opt) { if (!o->o_silent || verbose)