Module Name: src Committed By: dholland Date: Mon Aug 15 00:26:16 UTC 2011
Modified Files: src/sbin/resize_ffs: resize_ffs.c Log Message: Avoid switch-jumping into the middle of an if. Compiler output is unchanged. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sbin/resize_ffs/resize_ffs.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/resize_ffs/resize_ffs.c diff -u src/sbin/resize_ffs/resize_ffs.c:1.26 src/sbin/resize_ffs/resize_ffs.c:1.27 --- src/sbin/resize_ffs/resize_ffs.c:1.26 Mon Aug 15 00:24:19 2011 +++ src/sbin/resize_ffs/resize_ffs.c Mon Aug 15 00:26:16 2011 @@ -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; } }