summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ifs/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fsck_ifs/setup.c')
-rw-r--r--sbin/fsck_ifs/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/fsck_ifs/setup.c b/sbin/fsck_ifs/setup.c
index 6c4098c..b9c3148 100644
--- a/sbin/fsck_ifs/setup.c
+++ b/sbin/fsck_ifs/setup.c
@@ -292,10 +292,12 @@ setup(dev)
}
numdirs = sblock.fs_cstotal.cs_ndir;
dirhash = numdirs;
+#if NOTFORIFS
if (numdirs == 0) {
printf("numdirs is zero, try using an alternate superblock\n");
goto badsb;
}
+#endif
inplast = 0;
listmax = numdirs + 10;
inpsort = (struct inoinfo **)calloc((unsigned)listmax,
OpenPOWER on IntegriCloud