summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-06-11 19:53:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-06-11 19:53:30 (GMT)
commitbea931d73cb9db08ac220393c2cb59dd6326a8ef (patch)
tree2a3852ebb0641453477852bf0c93be5b06e99335 /src/H5FD.c
parentd9348f3763294259cc75f15bd255133c820112db (diff)
downloadhdf5-bea931d73cb9db08ac220393c2cb59dd6326a8ef.zip
hdf5-bea931d73cb9db08ac220393c2cb59dd6326a8ef.tar.gz
hdf5-bea931d73cb9db08ac220393c2cb59dd6326a8ef.tar.bz2
[svn-r3983] Purpose:
Code cleanups Description: Fixed a small number of warnings and also took out the H5private.h header from H5Ppublic.h Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'src/H5FD.c')
-rw-r--r--src/H5FD.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index f456ffc..5fc0c02 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -1177,7 +1177,7 @@ H5FD_alloc(H5FD_t *file, H5FD_mem_t type, hsize_t size)
#ifdef H5F_DEBUG
if (H5DEBUG(F)) {
- fprintf(H5DEBUG(F), "%s: alignment=%ld, threshold=%ld, size=%ld\n",
+ HDfprintf(H5DEBUG(F), "%s: alignment=%Hd, threshold=%Hd, size=%Hd\n",
FUNC, file->alignment, file->threshold, size);
}
#endif
@@ -1288,15 +1288,15 @@ H5FD_alloc(H5FD_t *file, H5FD_mem_t type, hsize_t size)
ret_value = best->addr + head;
#ifdef H5F_DEBUG
if (H5DEBUG(F)) {
- fprintf(H5DEBUG(F),
- "%s: 3 pieces, begin best->addr=%ld, best->size=%ld, "
- "head=%ld, size=%ld\n",
+ HDfprintf(H5DEBUG(F),
+ "%s: 3 pieces, begin best->addr=%a, best->size=%Hd, "
+ "head=%Hd, size=%Hd\n",
FUNC, best->addr, best->size, head, size);
}
#endif
assert(tmp); /* bark in debug mode */
if (tmp){
- if (tmp->size = best->size - head - size){
+ if (tmp->size = (best->size - head - size)){
tmp->addr = best->addr + head + size;
tmp->next = best->next;
best->next = tmp;
@@ -1406,14 +1406,14 @@ H5FD_real_alloc(H5FD_t *file, H5FD_mem_t type, hsize_t size)
"driver allocation request failed");
}
} else {
- hsize_t wasted, tmpsize;
+ hsize_t wasted;
haddr_t oldeoa;
haddr_t eoa = (file->cls->get_eoa)(file);
#ifdef H5F_DEBUG
if (file->alignment * file->threshold != 1 && H5DEBUG(F)) {
- fprintf(H5DEBUG(F),
- "%s: alignment=%ld, threshold=%ld, size=%ld, Begin eoa=%ld\n",
+ HDfprintf(H5DEBUG(F),
+ "%s: alignment=%Hd, threshold=%Hd, size=%Hd, Begin eoa=%a\n",
FUNC, file->alignment, file->threshold, size, eoa);
}
#endif
@@ -1452,8 +1452,8 @@ H5FD_real_alloc(H5FD_t *file, H5FD_mem_t type, hsize_t size)
#ifdef H5F_DEBUG
if (file->alignment * file->threshold != 1 && H5DEBUG(F)) {
- fprintf(H5DEBUG(F),
- "%s: ret_value=%ld, wasted=%ld, Ended eoa=%ld\n",
+ HDfprintf(H5DEBUG(F),
+ "%s: ret_value=%a, wasted=%Hd, Ended eoa=%a\n",
FUNC, ret_value, wasted, eoa);
}
#endif