summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-08-08 19:03:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-08-08 19:03:43 (GMT)
commit92f5e443f8105b51697afb67daca9066793ab05d (patch)
tree9b3ca110f7204ae9f2925fd296215464ee18ee26 /test/h5test.c
parent8daa13f3cd24ac980feb71e723ce123d4655b4fe (diff)
downloadhdf5-92f5e443f8105b51697afb67daca9066793ab05d.zip
hdf5-92f5e443f8105b51697afb67daca9066793ab05d.tar.gz
hdf5-92f5e443f8105b51697afb67daca9066793ab05d.tar.bz2
[svn-r7308] Purpose:
Code cleanup Description: Made automatic error printing routine, h5_errors(), static. Passed along error stack in h5_errors() Platforms tested: h5committested
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 5486a16..f583e4e 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -89,6 +89,8 @@ MPI_Info h5_io_info_g=MPI_INFO_NULL;/* MPI INFO object for IO */
*/
static const char *multi_letters = "msbrglo";
+static herr_t h5_errors(hid_t err_stack, void *client_data);
+
/*-------------------------------------------------------------------------
* Function: h5_errors
@@ -106,11 +108,11 @@ static const char *multi_letters = "msbrglo";
*
*-------------------------------------------------------------------------
*/
-herr_t
-h5_errors(void UNUSED *client_data)
+static herr_t
+h5_errors(hid_t err_stack, void UNUSED *client_data)
{
H5_FAILED();
- H5Eprint (H5E_DEFAULT, stdout);
+ H5Eprint (err_stack, stdout);
return 0;
}