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