Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/resize_ffs Avoid switch-jumping into the middle of an i...
details: https://anonhg.NetBSD.org/src/rev/bf1da6138811
branches: trunk
changeset: 768345:bf1da6138811
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Aug 15 00:26:16 2011 +0000
description:
Avoid switch-jumping into the middle of an if. Compiler output is unchanged.
diffstat:
sbin/resize_ffs/resize_ffs.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 8dedee256f9a -r bf1da6138811 sbin/resize_ffs/resize_ffs.c
--- a/sbin/resize_ffs/resize_ffs.c Mon Aug 15 00:24:19 2011 +0000
+++ b/sbin/resize_ffs/resize_ffs.c Mon Aug 15 00:26:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: resize_ffs.c,v 1.26 2011/08/15 00:24:19 dholland Exp $ */
+/* $NetBSD: resize_ffs.c,v 1.27 2011/08/15 00:26:16 dholland Exp $ */
/* From sources sent on February 17, 2003 */
/*-
* As its sole author, I explicitly place this code in the public
@@ -1426,7 +1426,10 @@
switch (DIP(di,di_mode) & IFMT) {
case IFLNK:
- if (DIP(di,di_size) > oldsb->fs_maxsymlinklen) {
+ if (DIP(di,di_size) <= oldsb->fs_maxsymlinklen) {
+ break;
+ }
+ /* FALLTHROUGH */
case IFDIR:
case IFREG:
if (is_ufs2) {
@@ -1446,7 +1449,6 @@
if (movemap_blocks(iblkptr, NIADDR)) {
iflags[inum] |= IF_DIRTY;
}
- }
break;
}
}
Home |
Main Index |
Thread Index |
Old Index