From 4bc1eccf9ad664ef3cdf2a24e9a1fb0e80c4995b Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 3 Sep 2003 11:45:48 -0500 Subject: [svn-r7439] Purpose: Code cleanup Description: Clear up a couple of minor issues with compiling the library with a C++ compiler. Platforms tested: FreeBSD 4.9 (sleipnir) Too minor to require h5committest --- perform/overhead.c | 4 ++-- test/errors.c | 4 ++-- 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]; -- cgit v0.12