diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-09 17:36:42 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-09 17:36:42 +0300 |
commit | eba8ed71f08f334bc94ac8eeedcd998fcdd05897 (patch) | |
tree | c7a2f4adfb3418ff5d970a4f01fe87df38e04dc9 /util-linux/mkfs_minix.c | |
parent | 9ba5bce06f71e610db752489b4f97e2af56c2577 (diff) |
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.c | 5 |
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; 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); |