diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-18 20:22:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-18 20:22:10 (GMT) |
commit | d41b9fffdfca2e97c36bc0ad0899fbb7b055f926 (patch) | |
tree | 51ed39b08a41a4f6947af07630eb40dfdb013d87 /src/H5FD.c | |
parent | fcaf572430a8eda3f6519bd21311ef7a8e3c3c1f (diff) | |
download | hdf5-d41b9fffdfca2e97c36bc0ad0899fbb7b055f926.zip hdf5-d41b9fffdfca2e97c36bc0ad0899fbb7b055f926.tar.gz hdf5-d41b9fffdfca2e97c36bc0ad0899fbb7b055f926.tar.bz2 |
[svn-r4012] Purpose:
Clean up compiler warnings.
Description:
Just code neatening mostly, some casts, etc.
Platforms tested:
FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'src/H5FD.c')
-rw-r--r-- | src/H5FD.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1295,16 +1295,16 @@ H5FD_alloc(H5FD_t *file, H5FD_mem_t type, hsize_t size) } #endif assert(tmp); /* bark in debug mode */ - if (tmp){ - if (tmp->size = (best->size - head - size)){ + if (tmp) { + if ((tmp->size = (best->size - head - size))) { tmp->addr = best->addr + head + size; tmp->next = best->next; best->next = tmp; - }else{ + } else { /* no tail piece */ H5MM_xfree(tmp); } - }else{ + } else { /* cannot keep the tail piece. leak file memory. */ } best->size = head; |