Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanup
warnings with glibc 2.2 and use always use xfopen -Erik
This commit is contained in:
parent
9ba5bce06f
commit
eba8ed71f0
34 changed files with 40 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue