summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-09-03 16:45:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-09-03 16:45:48 (GMT)
commit4bc1eccf9ad664ef3cdf2a24e9a1fb0e80c4995b (patch)
tree0c4d0130526d981eb730775dadb5e4cff072e2db
parent32a666f65243a0583be867935b892dd4ae13d1f4 (diff)
downloadhdf5-4bc1eccf9ad664ef3cdf2a24e9a1fb0e80c4995b.zip
hdf5-4bc1eccf9ad664ef3cdf2a24e9a1fb0e80c4995b.tar.gz
hdf5-4bc1eccf9ad664ef3cdf2a24e9a1fb0e80c4995b.tar.bz2
[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
-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];