diff options
Diffstat (limited to 'contrib/libf2c/libI77/open.c')
-rw-r--r-- | contrib/libf2c/libI77/open.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/libf2c/libI77/open.c b/contrib/libf2c/libI77/open.c index 3e4c8bc32b5c..7c8f3ded7ac5 100644 --- a/contrib/libf2c/libI77/open.c +++ b/contrib/libf2c/libI77/open.c @@ -141,7 +141,6 @@ integer f_open(olist *a) int n; #endif if(f__init != 1) f_init(); - f__external = 1; if(a->ounit>=MXUNIT || a->ounit<0) err(a->oerr,101,"open"); f__curunit = b = &f__units[a->ounit]; @@ -187,7 +186,7 @@ integer f_open(olist *a) opnerr(a->oerr,107,"open"); } else - sprintf(buf, "fort.%ld", (long)a->ounit); + sprintf(buf, "fort.%ld", a->ounit); b->uscrtch = 0; b->uend=0; b->uwrt = 0; @@ -281,7 +280,7 @@ fk_open(int seq, int fmt, ftnint n) int rtn; int save_init; - (void) sprintf(nbuf,"fort.%ld",(long)n); + (void) sprintf(nbuf,"fort.%ld",n); a.oerr=1; a.ounit=n; a.ofnm=nbuf; |