summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2024-02-09 17:04:48 (GMT)
committerGitHub <noreply@github.com>2024-02-09 17:04:48 (GMT)
commita4c707a8328269eaeee8650a9d8f63341191776b (patch)
tree0b5491ae0e35f6d2f72bdca3d3c8eacc6ea82092
parent0a931525416447621c72043b213422ff1f10abff (diff)
downloadhdf5-a4c707a8328269eaeee8650a9d8f63341191776b.zip
hdf5-a4c707a8328269eaeee8650a9d8f63341191776b.tar.gz
hdf5-a4c707a8328269eaeee8650a9d8f63341191776b.tar.bz2
Fix incompatible pointer type warnings in object reference examples (#3999)
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_objref.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_objrefatt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/HDF5Examples/C/H5T/h5ex_t_objref.c b/HDF5Examples/C/H5T/h5ex_t_objref.c
index 1109720..660cc11 100644
--- a/HDF5Examples/C/H5T/h5ex_t_objref.c
+++ b/HDF5Examples/C/H5T/h5ex_t_objref.c
@@ -36,7 +36,7 @@ main(void)
hid_t ref_type = H5T_STD_REF; /* Reference datatype */
H5R_ref_t wdata[DIM0]; /* buffer to write to disk */
H5R_ref_t *rdata = NULL; /* buffer to read into*/
- H5R_type_t objtype; /* Reference type */
+ H5O_type_t objtype; /* Reference type */
#else
hid_t ref_type = H5T_STD_REF_OBJ; /* Reference datatype */
hobj_ref_t wdata[DIM0]; /* Write buffer */
diff --git a/HDF5Examples/C/H5T/h5ex_t_objrefatt.c b/HDF5Examples/C/H5T/h5ex_t_objrefatt.c
index a464e9e..1d9d1fe 100644
--- a/HDF5Examples/C/H5T/h5ex_t_objrefatt.c
+++ b/HDF5Examples/C/H5T/h5ex_t_objrefatt.c
@@ -38,7 +38,7 @@ main(void)
hid_t ref_type = H5T_STD_REF; /* Reference datatype */
H5R_ref_t wdata[DIM0]; /* buffer to write to disk */
H5R_ref_t *rdata = NULL; /* buffer to read into*/
- H5R_type_t objtype; /* Reference type */
+ H5O_type_t objtype; /* Reference type */
#else
hid_t ref_type = H5T_STD_REF_OBJ; /* Reference datatype */
hobj_ref_t wdata[DIM0]; /* Write buffer */