aboutsummaryrefslogtreecommitdiff
path: root/gas/itbl-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/itbl-ops.c')
-rw-r--r--gas/itbl-ops.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gas/itbl-ops.c b/gas/itbl-ops.c
index d3650cd..729ee98 100644
--- a/gas/itbl-ops.c
+++ b/gas/itbl-ops.c
@@ -183,17 +183,18 @@ itbl_parse (char *insntbl)
{
extern FILE *yyin;
extern int yyparse (void);
- yyin = fopen (insntbl, "r");
+
+ yyin = fopen (insntbl, FOPEN_RT);
if (yyin == 0)
{
printf ("Can't open processor instruction specification file \"%s\"\n",
insntbl);
return 1;
}
- else
- {
- while (yyparse ());
- }
+
+ while (yyparse ())
+ ;
+
fclose (yyin);
itbl_have_entries = 1;
return 0;