summaryrefslogtreecommitdiff
path: root/util-linux/mkfs_minix.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-09 14:36:42 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-09 14:36:42 +0000
commiteba8ed71f08f334bc94ac8eeedcd998fcdd05897 (patch)
treec7a2f4adfb3418ff5d970a4f01fe87df38e04dc9 /util-linux/mkfs_minix.c
parent9ba5bce06f71e610db752489b4f97e2af56c2577 (diff)
downloadbusybox-w32-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.tar.gz
busybox-w32-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.tar.bz2
busybox-w32-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.zip
Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanup
warnings with glibc 2.2 and use always use xfopen -Erik
Diffstat (limited to 'util-linux/mkfs_minix.c')
-rw-r--r--util-linux/mkfs_minix.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index b666338dc..928a49674 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -683,10 +683,7 @@ char *filename;
683 FILE *listfile; 683 FILE *listfile;
684 unsigned long blockno; 684 unsigned long blockno;
685 685
686 listfile = fopen(filename, "r"); 686 listfile = xfopen(filename, "r");
687 if (listfile == (FILE *) NULL) {
688 error_msg_and_die("can't open file of bad blocks");
689 }
690 while (!feof(listfile)) { 687 while (!feof(listfile)) {
691 fscanf(listfile, "%ld\n", &blockno); 688 fscanf(listfile, "%ld\n", &blockno);
692 mark_zone(blockno); 689 mark_zone(blockno);