diff options
Diffstat (limited to 'src/RecoverGH.c')
-rw-r--r-- | src/RecoverGH.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/RecoverGH.c b/src/RecoverGH.c index fca11cf..664b46f 100644 --- a/src/RecoverGH.c +++ b/src/RecoverGH.c @@ -275,6 +275,7 @@ static int IOFlexIOi_OpenFile (cGH *GH, const char *basename, int called_from, fileinfo_t *file) { DECLARE_CCTK_PARAMETERS + int retval; int index; int nprocs, myproc; Long nels_stored; @@ -465,7 +466,8 @@ static int IOFlexIOi_OpenFile (cGH *GH, const char *basename, int called_from, } /* Return 0 for success otherwise negative */ - return (file->is_IEEEIO_file ? 0 : -1); + retval = (file->is_IEEEIO_file ? 0 : -1); + return (retval); } @@ -545,6 +547,7 @@ static int IOFlexIOi_RecoverGHextensions (cGH *GH, fileinfo_t *file) static int IOFlexIOi_RecoverParameters (fileinfo_t *file) { DECLARE_CCTK_PARAMETERS + int retval; int index, atype; Long asize; char *parameters; @@ -597,7 +600,8 @@ static int IOFlexIOi_RecoverParameters (fileinfo_t *file) } /* Return positive value for success otherwise negative */ - return (parameterSize > 0 ? 1 : -1); + retval = (parameterSize > 0 ? 1 : -1); + return retval; } |