From f7db09fb3d01fec4a8576b80069bee66e3403d2e Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 23 Aug 2007 07:54:50 -0500 Subject: [svn-r14101] Description: Change definition of H5E_walk1_t compatibility type to match the H5E_walk_t type in the 1.6.x library. Tested on: Mac OS X/32 10.4.10 (amazon) Too minor to require commit test --- src/H5Epublic.h | 3 +-- test/err_compat.c | 4 ++-- 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; -- cgit v0.12