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 | f740e790c79faaedbed56f98844762432cc2d55b (patch) | |
tree | 2c00e02969021e1a83e7de195458cb7a9443bd6d /gas/itbl-ops.c | |
parent | c2a1a436ff678160c25ed50f07f3a5f122e044d2 (diff) | |
download | gdb-f740e790c79faaedbed56f98844762432cc2d55b.zip gdb-f740e790c79faaedbed56f98844762432cc2d55b.tar.gz gdb-f740e790c79faaedbed56f98844762432cc2d55b.tar.bz2 |
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 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; |