summaryrefslogtreecommitdiffstats
path: root/examples/h5_extlink.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 17:50:43 (GMT)
committerGitHub <noreply@github.com>2023-07-27 17:50:43 (GMT)
commit05db7c16acc835b609a5894a70394e4f699323cb (patch)
treeda55c523ff164188713c785715c308d47f03e9cf /examples/h5_extlink.c
parent1fe3fda4edcf26d3f18de13d5f6525f6314e7ae7 (diff)
downloadhdf5-05db7c16acc835b609a5894a70394e4f699323cb.zip
hdf5-05db7c16acc835b609a5894a70394e4f699323cb.tar.gz
hdf5-05db7c16acc835b609a5894a70394e4f699323cb.tar.bz2
Normalize examples w/ develop (#3282)
Diffstat (limited to 'examples/h5_extlink.c')
-rw-r--r--examples/h5_extlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/h5_extlink.c b/examples/h5_extlink.c
index 8d3fc8c..e1f02cf 100644
--- a/examples/h5_extlink.c
+++ b/examples/h5_extlink.c
@@ -411,7 +411,7 @@ UD_hard_create(const char *link_name, hid_t loc_group, const void *udata, size_t
goto done;
}
- token = *((H5O_token_t *)udata);
+ token = *((const H5O_token_t *)udata);
//! [H5Oopen_by_token_snip]
@@ -459,7 +459,7 @@ UD_hard_delete(const char *link_name, hid_t loc_group, const void *udata, size_t
goto done;
}
- token = *((H5O_token_t *)udata);
+ token = *((const H5O_token_t *)udata);
/* Open the object this link points to */
target_obj = H5Oopen_by_token(loc_group, token);
@@ -498,7 +498,7 @@ UD_hard_traverse(const char *link_name, hid_t cur_group, const void *udata, size
if (udata_size != sizeof(H5O_token_t))
return H5I_INVALID_HID;
- token = *((H5O_token_t *)udata);
+ token = *((const H5O_token_t *)udata);
/* Open the object by token. If H5Oopen_by_token fails, ret_value will
* be negative to indicate that the traversal function failed.