]> git.proxmox.com Git - mirror_zfs.git/blobdiff - include/sys/spa.h
Undo c89 workarounds to match with upstream
[mirror_zfs.git] / include / sys / spa.h
index a5278da6b448c737bca2406f7c2badfbef65162a..c291c508281a4d697be81ac645171916ef5e3517 100644 (file)
@@ -638,7 +638,6 @@ _NOTE(CONSTCOND) } while (0)
            { "zero", "single", "double", "triple" };                   \
        int len = 0;                                                    \
        int copies = 0;                                                 \
-       int d;                                                          \
                                                                        \
        if (bp == NULL) {                                               \
                len += func(buf + len, size - len, "<NULL>");           \
@@ -662,7 +661,7 @@ _NOTE(CONSTCOND) } while (0)
                    (u_longlong_t)BPE_GET_PSIZE(bp),                    \
                    (u_longlong_t)bp->blk_birth);                       \
        } else {                                                        \
-               for (d = 0; d < BP_GET_NDVAS(bp); d++) {                \
+               for (int d = 0; d < BP_GET_NDVAS(bp); d++) {            \
                        const dva_t *dva = &bp->blk_dva[d];             \
                        if (DVA_IS_VALID(dva))                          \
                                copies++;                               \