Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makefs/ffs Fix build failure reported by bracket.



details:   https://anonhg.NetBSD.org/src/rev/0c36781d2dc8
branches:  trunk
changeset: 778909:0c36781d2dc8
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Apr 19 19:48:14 2012 +0000

description:
Fix build failure reported by bracket.

(shouldn't this size_t be ino_t?)

diffstat:

 usr.sbin/makefs/ffs/mkfs.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 16251364f215 -r 0c36781d2dc8 usr.sbin/makefs/ffs/mkfs.c
--- a/usr.sbin/makefs/ffs/mkfs.c        Thu Apr 19 18:51:35 2012 +0000
+++ b/usr.sbin/makefs/ffs/mkfs.c        Thu Apr 19 19:48:14 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkfs.c,v 1.23 2012/04/19 17:28:26 christos Exp $       */
+/*     $NetBSD: mkfs.c,v 1.24 2012/04/19 19:48:14 dholland Exp $       */
 
 /*
  * Copyright (c) 2002 Networks Associates Technology, Inc.
@@ -48,7 +48,7 @@
 static char sccsid[] = "@(#)mkfs.c     8.11 (Berkeley) 5/3/95";
 #else
 #ifdef __RCSID
-__RCSID("$NetBSD: mkfs.c,v 1.23 2012/04/19 17:28:26 christos Exp $");
+__RCSID("$NetBSD: mkfs.c,v 1.24 2012/04/19 19:48:14 dholland Exp $");
 #endif
 #endif
 #endif /* not lint */
@@ -666,11 +666,14 @@
                exit(37);
        }
        acg.cg_cs.cs_nifree += sblock.fs_ipg;
-       if (cylno == 0)
-               for (size_t r = 0; r < ROOTINO; r++) {
+       if (cylno == 0) {
+               size_t r;
+
+               for (r = 0; r < ROOTINO; r++) {
                        setbit(cg_inosused(&acg, 0), r);
                        acg.cg_cs.cs_nifree--;
                }
+       }
        if (cylno > 0) {
                /*
                 * In cylno 0, beginning space is reserved



Home | Main Index | Thread Index | Old Index