ndisasm: don't use nasm_open_read()

Don't use nasm_open_read() in ndisasm.c, as we don't currently
use nasm_error() in the disassembler.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2016-05-25 04:47:02 -07:00
parent 3e83cec90e
commit 0c0fdaa357

View File

@ -271,7 +271,7 @@ int main(int argc, char **argv)
}
if (strcmp(filename, "-")) {
fp = nasm_open_read(filename, NF_BINARY);
fp = fopen(filename, "rb");
if (!fp) {
fprintf(stderr, "%s: unable to open `%s': %s\n",
pname, filename, strerror(errno));