summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perform/overhead.c4
-rw-r--r--test/errors.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/perform/overhead.c b/perform/overhead.c
index 2b4e620..72d65c7 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -162,10 +162,10 @@ cleanup (void)
*-------------------------------------------------------------------------
*/
static herr_t
-display_error_cb (void UNUSED *client_data)
+display_error_cb (hid_t estack, void UNUSED *client_data)
{
puts ("*FAILED*");
- H5Eprint (H5E_DEFAULT, stdout);
+ H5Eprint (estack, stdout);
return 0;
}
diff --git a/test/errors.c b/test/errors.c
index af09592..3c40026 100644
--- a/test/errors.c
+++ b/test/errors.c
@@ -67,7 +67,7 @@ hid_t ERR_MIN_GETNUM;
#define SPACE2_DIM1 10
#define SPACE2_DIM2 10
-herr_t custom_print_cb(unsigned n, H5E_error_t *err_desc, void* client_data);
+herr_t custom_print_cb(unsigned n, const H5E_error_t *err_desc, void* client_data);
/*-------------------------------------------------------------------------
@@ -332,7 +332,7 @@ dump_error(hid_t estack)
*-------------------------------------------------------------------------
*/
herr_t
-custom_print_cb(unsigned n, H5E_error_t *err_desc, void* client_data)
+custom_print_cb(unsigned n, const H5E_error_t *err_desc, void* client_data)
{
FILE *stream = (FILE *)client_data;
char maj[MSG_SIZE];