mirror of
https://github.com/grub4dos/ntloader.git
synced 2025-05-09 12:11:09 +08:00
fix -Wunused-result errors
This commit is contained in:
parent
533c96375e
commit
57d3c32c6d
@ -47,7 +47,12 @@ main (int argc, char *argv[])
|
|||||||
buf = (char *) malloc (file_size);
|
buf = (char *) malloc (file_size);
|
||||||
assert (buf);
|
assert (buf);
|
||||||
|
|
||||||
fread (buf, file_size, 1, f_input);
|
if (fread (buf, file_size, 1, f_input) != 1)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "read %s failed\n", argv[1]);
|
||||||
|
fclose (f_input);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
fclose (f_input);
|
fclose (f_input);
|
||||||
|
|
||||||
f_output = fopen (argv[2], "w");
|
f_output = fopen (argv[2], "w");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user