]> granicus.if.org Git - zfs/commitdiff
Resolve C90 int declared in for() construct
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Jan 2009 23:26:54 +0000 (15:26 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Jan 2009 23:26:54 +0000 (15:26 -0800)
module/zfs/vdev.c

index 81b07e58d6299542dddb016649416c65f09eeb39..6999a33c32abc97f3f6acd0d1767c39bff370dd1 100644 (file)
@@ -1459,7 +1459,7 @@ vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg, int scrub_done)
                else
                        minref = vd->vdev_children;     /* any kind of mirror */
                space_map_ref_create(&reftree);
-               for (int c = 0; c < vd->vdev_children; c++) {
+               for (c = 0; c < vd->vdev_children; c++) {
                        vdev_t *cvd = vd->vdev_child[c];
                        mutex_enter(&cvd->vdev_dtl_lock);
                        space_map_ref_add_map(&reftree, &cvd->vdev_dtl[t], 1);