diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_reference.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_reference.c b/examples/h5_reference.c index ddf98ac..0823df0 100644 --- a/examples/h5_reference.c +++ b/examples/h5_reference.c @@ -103,11 +103,11 @@ main(void) { /* * Find the type of referenced objects. */ - status = H5Rget_object_type(did_r, &rbuf[0]); + status = H5Rget_obj_type(did_r, H5R_OBJECT, &rbuf[0]); if ( status == H5G_GROUP ) printf("First dereferenced object is a group. \n"); - status = H5Rget_object_type(did_r, &rbuf[1]); + status = H5Rget_obj_type(did_r, H5R_OBJECT, &rbuf[1]); if ( status == H5G_DATASET ) printf("Second dereferenced object is a dataset. \n"); /* |