summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-23 12:54:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-23 12:54:50 (GMT)
commitf7db09fb3d01fec4a8576b80069bee66e3403d2e (patch)
tree115d2a201c90ad1d31015d96e1667f79cc325d6e
parent2f47d558d12dcf7f4ac8b8300ecbfe09fa7a6c2f (diff)
downloadhdf5-f7db09fb3d01fec4a8576b80069bee66e3403d2e.zip
hdf5-f7db09fb3d01fec4a8576b80069bee66e3403d2e.tar.gz
hdf5-f7db09fb3d01fec4a8576b80069bee66e3403d2e.tar.bz2
[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
-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;