summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-02-24 14:39:17 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-02-24 14:39:17 (GMT)
commit5b1c9ffe2d7ba0dd906836cb844c7504aa96aa58 (patch)
tree3cf313ebed818a6f4d1fc6c068be17dc0b0f4eec /tools/h5dump/h5dump.c
parent944f2cdf8d7f3d665ac9e72fe2267826e8abb047 (diff)
downloadhdf5-5b1c9ffe2d7ba0dd906836cb844c7504aa96aa58.zip
hdf5-5b1c9ffe2d7ba0dd906836cb844c7504aa96aa58.tar.gz
hdf5-5b1c9ffe2d7ba0dd906836cb844c7504aa96aa58.tar.bz2
[svn-r21980] Correct HD prefix in tools for *alloc
Checked for HD support.
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r--tools/h5dump/h5dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 09dead0..ac9d1d3 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -642,7 +642,7 @@ parse_hsize_list(const char *h_list, subset_d *d)
return;
/* allocate an array for the integers in the list */
- p_list = (hsize_t *)calloc(size_count, sizeof(hsize_t));
+ p_list = (hsize_t *)HDcalloc(size_count, sizeof(hsize_t));
for (ptr = h_list; i < size_count && ptr && *ptr && *ptr != ';' && *ptr != ']'; ptr++)
if(isdigit(*ptr)) {
@@ -684,7 +684,7 @@ parse_subset_params(char *dset)
if (!disable_compact_subset && ((brace = strrchr(dset, '[')) != NULL)) {
*brace++ = '\0';
- s = (struct subset_t *)calloc(1, sizeof(struct subset_t));
+ s = (struct subset_t *)HDcalloc(1, sizeof(struct subset_t));
parse_hsize_list(brace, &s->start);
while (*brace && *brace != ';')
@@ -906,7 +906,7 @@ parse_command_line(int argc, const char *argv[])
}
/* this will be plenty big enough to hold the info */
- if((hand = (struct handler_t *)calloc((size_t)argc, sizeof(struct handler_t)))==NULL) {
+ if((hand = (struct handler_t *)HDcalloc((size_t)argc, sizeof(struct handler_t)))==NULL) {
goto error;
}
@@ -1163,7 +1163,7 @@ parse_start:
s = last_dset->subset_info;
}
else {
- last_dset->subset_info = s = (struct subset_t *)calloc(1, sizeof(struct subset_t));
+ last_dset->subset_info = s = (struct subset_t *)HDcalloc(1, sizeof(struct subset_t));
}
/*