diff --git a/binutils/aa_features_abi.c b/binutils/aa_features_abi.c index a92574466..ed734aea9 100644 --- a/binutils/aa_features_abi.c +++ b/binutils/aa_features_abi.c @@ -124,7 +124,7 @@ static char **parse_args(int argc, char **argv) {"stdout", no_argument, 0, ARG_STDOUT}, }; - while ((opt = getopt_long(argc, argv, "+dvhxl:w:", long_opts, NULL)) != -1) { + while ((opt = getopt_long(argc, argv, "+dvhxf:l:w:", long_opts, NULL)) != -1) { switch (opt) { case 'd': opt_debug = true; @@ -181,7 +181,7 @@ int main(int argc, char **argv) error("failed to extract features abi from the kernel"); } if (opt_file) { - int in = open(opt_file, O_RDONLY); + in = open(opt_file, O_RDONLY); if (in == -1) error("failed to open file '%s'", opt_file); rc = aa_features_new_from_file(&features, in);