diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-11 22:36:12 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-11 22:36:12 (GMT) |
commit | 247a7e49a263e34d94459769449bfc57ac1a58a1 (patch) | |
tree | a33b6bba81cb6744475d7942d62161a2bb7e82f6 /src/H5FD.c | |
parent | 2d9628c3769b119045c1e247ef0b0795f2d35a64 (diff) | |
download | hdf5-247a7e49a263e34d94459769449bfc57ac1a58a1.zip hdf5-247a7e49a263e34d94459769449bfc57ac1a58a1.tar.gz hdf5-247a7e49a263e34d94459769449bfc57ac1a58a1.tar.bz2 |
[svn-r3994] Purpose:
Bug fix for Pablo integration
Description:
Several API functions were using FUNC_ENTER, without using FUNC_LEAVE,
HRETURN or HRETURN_ERROR to leave the function. (Using "plain" 'return'
statements instead).
Solution:
Changed return statements to FUNC_LEAVE, HRETURN or HRETURN_ERROR, as
appropriate.
Platforms tested:
FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'src/H5FD.c')
-rw-r--r-- | src/H5FD.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -983,17 +983,17 @@ H5FD_cmp(const H5FD_t *f1, const H5FD_t *f2) FUNC_ENTER(H5FD_cmp, -1); /*return value is arbitrary*/ - if ((!f1 || !f1->cls) && (!f2 || !f2->cls)) return 0; - if (!f1 || !f1->cls) return -1; - if (!f2 || !f2->cls) return 1; - if (f1->cls < f2->cls) return -1; - if (f1->cls > f2->cls) return 1; + if ((!f1 || !f1->cls) && (!f2 || !f2->cls)) HRETURN(0); + if (!f1 || !f1->cls) HRETURN(-1); + if (!f2 || !f2->cls) HRETURN(1); + if (f1->cls < f2->cls) HRETURN(-1); + if (f1->cls > f2->cls) HRETURN(1); /* Files are same driver; no cmp callback */ if (!f1->cls->cmp) { - if (f1<f2) return -1; - if (f1>f2) return 1; - return 0; + if (f1<f2) HRETURN(-1); + if (f1>f2) HRETURN(1); + HRETURN(0); } ret_value = (f1->cls->cmp)(f1, f2); |