diff options
author | Nick Clifton <nickc@redhat.com> | 2001-07-10 09:45:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-07-10 09:45:50 +0000 |
commit | def775f64973fa8a403623c8be8f040dd39f2d73 (patch) | |
tree | ba02d918b1e7aaeedb96479cd40a5f8f69348a27 /gas/itbl-ops.c | |
parent | e18ef6ade5203d489dfdc859f60e3f2afa271df4 (diff) | |
download | binutils-redhat-def775f64973fa8a403623c8be8f040dd39f2d73.tar.gz |
Use FOPEN_.. macros in calls to fopen().
Diffstat (limited to 'gas/itbl-ops.c')
-rw-r--r-- | gas/itbl-ops.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gas/itbl-ops.c b/gas/itbl-ops.c index d3650cd008..729ee98374 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; |