diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2002-05-31 14:36:35 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2002-05-31 14:36:35 (GMT) |
commit | f4d1614943e3cfcb74dfea218f8297e9f595d197 (patch) | |
tree | 79d11790f34aee28c4e085af8a19efd1f59e34f3 /fortran/src/H5Ef.c | |
parent | 96f0b001a039e1281de8deefb0ad7360f09b0c81 (diff) | |
download | hdf5-f4d1614943e3cfcb74dfea218f8297e9f595d197.zip hdf5-f4d1614943e3cfcb74dfea218f8297e9f595d197.tar.gz hdf5-f4d1614943e3cfcb74dfea218f8297e9f595d197.tar.bz2 |
[svn-r5490] Purpose:
Code cleanup
Description:
While working on the "External test" failure I restructured and
cleaned up some C stub code.
Platforms tested:
dangermouse (Linux 2.4)
Diffstat (limited to 'fortran/src/H5Ef.c')
-rw-r--r-- | fortran/src/H5Ef.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fortran/src/H5Ef.c b/fortran/src/H5Ef.c index 47fac00..84bf50f 100644 --- a/fortran/src/H5Ef.c +++ b/fortran/src/H5Ef.c @@ -51,17 +51,16 @@ nh5eprint_c1(_fcd name, int_f* namelen) c_name = (char*)HD5f2cstring(name, c_namelen); if(c_name == NULL) return ret_val; file = fopen(c_name, "a"); - if(!file) { HDfree(c_name); - return ret_val; - } + if(!file) goto DONE; /* * Call H5Eprint function. */ status = H5Eprint(file); + if (status >=0 ) ret_val = 0; fclose(file); + +DONE: HDfree(c_name); - if(status < 0) return ret_val; - ret_val = 0; return ret_val; } @@ -87,8 +86,7 @@ nh5eprint_c2() * Call H5Eprint function. */ status = H5Eprint(NULL); - if(status < 0) return ret_val; - ret_val = 0; + if(status >= 0) ret_val = 0; return ret_val; } |