diff options
-rw-r--r-- | test/cmpd_dset.c | 8 | ||||
-rw-r--r-- | test/testhdf5.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c index 92b930f..f504f66 100644 --- a/test/cmpd_dset.c +++ b/test/cmpd_dset.c @@ -124,9 +124,9 @@ main (void) hid_t file, dataset, space; herr_t status; static size_t dim[] = {NX, NY}; - size_t f_offset[2]; /*offset of hyperslab in file */ - size_t h_size[2]; /*size of hyperslab */ - size_t h_sample[2]; /*hyperslab sampling */ + int f_offset[2]; /*offset of hyperslab in file */ + int h_size[2]; /*size of hyperslab */ + int h_sample[2]; /*hyperslab sampling */ /* Create the file */ file = H5Fcreate ("cmpd_dset.h5", H5ACC_OVERWRITE, @@ -395,7 +395,7 @@ STEP 8: Read middle third hyperslab into memory array.\n"); assert (status>=0); /* Create memory data space */ - s8_m_sid = H5Pcreate_simple (2, h_size); + s8_m_sid = H5Pcreate_simple (2, (size_t *)h_size); assert (s8_m_sid>=0); /* Read the dataset */ diff --git a/test/testhdf5.c b/test/testhdf5.c index b59c3ab..cf713f9 100644 --- a/test/testhdf5.c +++ b/test/testhdf5.c @@ -63,14 +63,14 @@ struct TestStruct { char Description[64]; int SkipFlag; char Name[16]; - VOID(*Call) (void); + void (*Call) (void); } Test[MAXNUMOFTESTS]; -static void InitTest(const char *TheName, VOID(*TheCall) (void), const char *TheDescr); +static void InitTest(const char *TheName, void (*TheCall) (void), const char *TheDescr); static void usage(void); static void -InitTest(const char *TheName, VOID(*TheCall) (void), const char *TheDescr) +InitTest(const char *TheName, void (*TheCall) (void), const char *TheDescr) { if (Index >= MAXNUMOFTESTS) { print_func("Uh-oh, too many tests added, increase MAXNUMOFTEST!\n"); |