Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/mount Add some { } around an if body that is followed b...
details: https://anonhg.NetBSD.org/src/rev/8ad913a136b2
branches: trunk
changeset: 1026383:8ad913a136b2
user: simonb <simonb%NetBSD.org@localhost>
date: Sun Nov 21 05:09:15 2021 +0000
description:
Add some { } around an if body that is followed by an "else {".
diffstat:
sbin/mount/mount.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 79f47bf3ee89 -r 8ad913a136b2 sbin/mount/mount.c
--- a/sbin/mount/mount.c Sat Nov 20 19:26:20 2021 +0000
+++ b/sbin/mount/mount.c Sun Nov 21 05:09:15 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount.c,v 1.104 2021/06/04 11:55:45 simonb Exp $ */
+/* $NetBSD: mount.c,v 1.105 2021/11/21 05:09:15 simonb Exp $ */
/*
* Copyright (c) 1980, 1989, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
#else
-__RCSID("$NetBSD: mount.c,v 1.104 2021/06/04 11:55:45 simonb Exp $");
+__RCSID("$NetBSD: mount.c,v 1.105 2021/11/21 05:09:15 simonb Exp $");
#endif
#endif /* not lint */
@@ -173,7 +173,7 @@
rval = 0;
switch (argc) {
case 0:
- if (all)
+ if (all) {
while ((fs = getfsent()) != NULL) {
if (BADTYPE(fs->fs_type))
continue;
@@ -199,7 +199,7 @@
fs->fs_mntops, !forceall, NULL, 0))
rval = 1;
}
- else {
+ } else {
if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
err(EXIT_FAILURE, "getmntinfo");
for (i = 0; i < mntsize; i++) {
Home |
Main Index |
Thread Index |
Old Index