Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Goto considered harmful: "goto terminal" can now ju...
details: https://anonhg.NetBSD.org/src/rev/c22f7b69c14d
branches: trunk
changeset: 764370:c22f7b69c14d
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Apr 18 00:46:14 2011 +0000
description:
Goto considered harmful: "goto terminal" can now just be "break".
diffstat:
sys/kern/vfs_lookup.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r e63ea4ea79d8 -r c22f7b69c14d sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c Mon Apr 18 00:45:53 2011 +0000
+++ b/sys/kern/vfs_lookup.c Mon Apr 18 00:46:14 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_lookup.c,v 1.179 2011/04/18 00:45:53 dholland Exp $ */
+/* $NetBSD: vfs_lookup.c,v 1.180 2011/04/18 00:46:14 dholland Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.179 2011/04/18 00:45:53 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.180 2011/04/18 00:46:14 dholland Exp $");
#include "opt_magiclinks.h"
@@ -1150,7 +1150,7 @@
cnp->cn_flags |= ISLASTCN;
/* bleh */
- goto terminal;
+ break;
}
error = lookup_parsepath(state);
@@ -1264,7 +1264,6 @@
break;
}
- terminal:
{
if (foundobj == ndp->ni_erootdir) {
/*
Home |
Main Index |
Thread Index |
Old Index