aboutsummaryrefslogtreecommitdiff
path: root/gas/itbl-ops.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-07-10 09:45:50 +0000
committerNick Clifton <nickc@redhat.com>2001-07-10 09:45:50 +0000
commitf740e790c79faaedbed56f98844762432cc2d55b (patch)
tree2c00e02969021e1a83e7de195458cb7a9443bd6d /gas/itbl-ops.c
parentc2a1a436ff678160c25ed50f07f3a5f122e044d2 (diff)
downloadgdb-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.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;