cleanup scope of variable `newfp'

This commit is contained in:
rlar 2011-12-30 17:44:52 +00:00
parent aedbc6b7be
commit 79436a3bb8
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2011-12-30 Robert Larice
* inpcom.c :
cleanup scope of variable `newfp'
2011-12-30 Robert Larice
* inpcom.c :
cleanup scope of variable `big_buff2'

View File

@ -152,7 +152,6 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
size_t max_line_length; /* max. line length in input deck */
FILE *newfp;
FILE *fdo;
struct line *tmp_ptr1 = NULL;
@ -295,8 +294,8 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
if ( !found_library ) {
bool dir_name_flag = FALSE;
FILE *newfp = inp_pathopen( s, "r" );
newfp = inp_pathopen( s, "r" );
if ( !newfp ) {
char big_buff2[5000];
@ -383,8 +382,8 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
{
bool dir_name_flag = FALSE;
FILE *newfp = inp_pathopen(s, "r");
newfp = inp_pathopen(s, "r");
if ( !newfp ) {
char big_buff2[5000];