summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5Epublic.h3
-rw-r--r--test/err_compat.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/H5Epublic.h b/src/H5Epublic.h
index 2ad7a06..e690eaa 100644
--- a/src/H5Epublic.h
+++ b/src/H5Epublic.h
@@ -205,8 +205,7 @@ typedef struct H5E_error1_t {
} H5E_error1_t;
/* Error stack traversal callback function pointers */
-typedef herr_t (*H5E_walk1_t)(unsigned n, const H5E_error1_t *err_desc,
- void *client_data);
+typedef herr_t (*H5E_walk1_t)(int n, H5E_error1_t *err_desc, void *client_data);
typedef herr_t (*H5E_auto1_t)(void *client_data);
/* Function prototypes */
diff --git a/test/err_compat.c b/test/err_compat.c
index a4d0968..beb6bfc 100644
--- a/test/err_compat.c
+++ b/test/err_compat.c
@@ -42,7 +42,7 @@ int ipoints2[DIM0][DIM1], icheck2[DIM0][DIM1];
#define DSET_NAME "a_dataset"
#define FAKE_ID -1
-herr_t custom_print_cb(unsigned n, const H5E_error1_t *err_desc, void* client_data);
+herr_t custom_print_cb(int n, H5E_error1_t *err_desc, void* client_data);
/*-------------------------------------------------------------------------
@@ -184,7 +184,7 @@ dump_error(void)
*-------------------------------------------------------------------------
*/
herr_t
-custom_print_cb(unsigned n, const H5E_error1_t *err_desc, void* client_data)
+custom_print_cb(int n, H5E_error1_t *err_desc, void* client_data)
{
FILE *stream = (FILE *)client_data;
char *maj;