*: remove some uses of argc
[oweals/busybox.git] / e2fsprogs / old_e2fsprogs / blkid / read.c
index 276e62a701afdff5cbbb8f68a7181fcc205a9fab..f795a5d1457d5d4a757b340b06cd174781d0e9f8 100644 (file)
@@ -374,9 +374,7 @@ void blkid_read_cache(blkid_cache cache)
        DBG(DEBUG_CACHE, printf("reading cache file %s\n",
                                cache->bic_filename));
 
-       file = fdopen(fd, "r");
-       if (!file)
-               goto errout;
+       file = xfdopen_for_read(fd);
 
        while (fgets(buf, sizeof(buf), file)) {
                blkid_dev dev;
@@ -436,7 +434,7 @@ static void debug_dump_dev(blkid_dev dev)
                else
                        printf("    tag: NULL\n");
        }
-       puts("");
+       bb_putchar('\n');
 }
 
 int main(int argc, char**argv)