summaryrefslogtreecommitdiffstats
path: root/src/H5Gnode.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-12-02 13:12:17 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-12-02 13:12:17 (GMT)
commita59ed2ca4ca251c1221b4713e665d8abe9b9ec94 (patch)
treeb91b128188b4ca10a30973df3f2719633c83273c /src/H5Gnode.c
parent33bdf2bc0efdfbbd8d3cb5503332c6a4345fcaf8 (diff)
downloadhdf5-a59ed2ca4ca251c1221b4713e665d8abe9b9ec94.zip
hdf5-a59ed2ca4ca251c1221b4713e665d8abe9b9ec94.tar.gz
hdf5-a59ed2ca4ca251c1221b4713e665d8abe9b9ec94.tar.bz2
[svn-r6142] Purpose:
Code cleanup Description: Clean up warnings with gcc 3.2.1 Platforms tested: FreeBSD 4.7 (sleipnir) w/C++, changes too small for triple check
Diffstat (limited to 'src/H5Gnode.c')
-rw-r--r--src/H5Gnode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Gnode.c b/src/H5Gnode.c
index 8671a43..98fde41 100644
--- a/src/H5Gnode.c
+++ b/src/H5Gnode.c
@@ -1181,7 +1181,7 @@ H5G_node_name(H5F_t *f, void UNUSED *_lt_key, haddr_t addr,
H5G_bt_ud3_t *bt_udata = (H5G_bt_ud3_t *)_udata;
size_t name_off;
hsize_t loc_idx;
- char *name;
+ const char *name;
H5G_node_t *sn = NULL;
H5B_iterate_t ret_value = H5B_ITER_CONT;
@@ -1202,9 +1202,9 @@ H5G_node_name(H5F_t *f, void UNUSED *_lt_key, haddr_t addr,
if(bt_udata->idx >= bt_udata->num_objs && bt_udata->idx < (bt_udata->num_objs+sn->nsyms)) {
loc_idx = bt_udata->idx - bt_udata->num_objs;
name_off = sn->entry[loc_idx].name_off;
- name = (char*)H5HL_peek (f, bt_udata->group->ent.cache.stab.heap_addr, name_off);
+ name = (const char*)H5HL_peek (f, bt_udata->group->ent.cache.stab.heap_addr, name_off);
assert (name);
- bt_udata->name = HDstrdup (name);
+ bt_udata->name = H5MM_strdup (name);
HGOTO_DONE(H5B_ITER_STOP);
}