diff options
Diffstat (limited to 'tools/h5diff/h5trav.c')
-rw-r--r-- | tools/h5diff/h5trav.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/h5diff/h5trav.c b/tools/h5diff/h5trav.c index 29171f9..f4ce00f 100644 --- a/tools/h5diff/h5trav.c +++ b/tools/h5diff/h5trav.c @@ -238,8 +238,8 @@ int traverse( hid_t loc_id, const char *group_name, table_t *table, info_t *info int inserted_objs=0; int j; void *edata; - hid_t (*func)(void*); - + H5E_auto_t func; + if (( nobjs = get_nobjects( loc_id, group_name )) < 0 ) return -1; @@ -259,12 +259,12 @@ int traverse( hid_t loc_id, const char *group_name, table_t *table, info_t *info strcat( path, name ); /* disable error reporting */ - H5Eget_auto(&func, &edata); - H5Eset_auto(NULL, NULL); + H5Eget_auto(H5E_DEFAULT, &func, &edata); + H5Eset_auto(H5E_DEFAULT, NULL, NULL); /* get info */ H5Gget_objinfo( loc_id, path, TRUE, &statbuf); - H5Eset_auto(func, edata); + H5Eset_auto(H5E_DEFAULT, &func, edata); /* add to array */ if ( info ) |