summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-07-12 16:56:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-07-12 16:56:19 (GMT)
commit068464492a14ea9ce20e2fac3bcd16db8c4f045d (patch)
tree058449a6812cd7b9bf74619bcab9710b39d22e0e /test
parent498b6fed119c222277cb0db5c4d4653b5038efc0 (diff)
downloadhdf5-068464492a14ea9ce20e2fac3bcd16db8c4f045d.zip
hdf5-068464492a14ea9ce20e2fac3bcd16db8c4f045d.tar.gz
hdf5-068464492a14ea9ce20e2fac3bcd16db8c4f045d.tar.bz2
[svn-r4198] Purpose:
Code cleanup Description: Clean up a few warnings in the library and tests, since it looks like we are going to have to roll another prelease tarball. Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'test')
-rw-r--r--test/tselect.c6
-rw-r--r--test/tvltypes.c12
2 files changed, 7 insertions, 11 deletions
diff --git a/test/tselect.c b/test/tselect.c
index 9e6911e..b9663bd 100644
--- a/test/tselect.c
+++ b/test/tselect.c
@@ -567,12 +567,8 @@ test_select_all(hid_t xfer_plist)
{
hid_t fid1; /* HDF5 File IDs */
hid_t dataset; /* Dataset ID */
- hid_t sid1,sid2; /* Dataspace ID */
+ hid_t sid1; /* Dataspace ID */
hsize_t dims1[] = {SPACE4_DIM1, SPACE4_DIM2, SPACE4_DIM3};
- hssize_t start[SPACE4_RANK]; /* Starting location of hyperslab */
- hsize_t stride[SPACE4_RANK]; /* Stride of hyperslab */
- hsize_t count[SPACE4_RANK]; /* Element count of hyperslab */
- hsize_t block[SPACE4_RANK]; /* Block size of hyperslab */
uint8_t *wbuf, /* buffer to write to disk */
*rbuf, /* buffer read from disk */
*tbuf; /* temporary buffer pointer */
diff --git a/test/tvltypes.c b/test/tvltypes.c
index 2fef5f9..2fb589d 100644
--- a/test/tvltypes.c
+++ b/test/tvltypes.c
@@ -51,7 +51,7 @@ void test_vltypes_free_custom(void *mem, void *info);
void *test_vltypes_alloc_custom(size_t size, void *info)
{
void *ret_value=NULL; /* Pointer to return */
- int *mem_used=(int *)info; /* Get the pointer to the memory used */
+ unsigned *mem_used=(unsigned *)info; /* Get the pointer to the memory used */
size_t extra; /* Extra space needed */
/*
@@ -79,7 +79,7 @@ void *test_vltypes_alloc_custom(size_t size, void *info)
void test_vltypes_free_custom(void *_mem, void *info)
{
unsigned char *mem;
- int *mem_used=(int *)info; /* Get the pointer to the memory used */
+ unsigned *mem_used=(unsigned *)info; /* Get the pointer to the memory used */
size_t extra; /* Extra space needed */
/*
@@ -114,7 +114,7 @@ test_vltypes_vlen_atomic(void)
hsize_t dims1[] = {SPACE1_DIM1};
hsize_t size; /* Number of bytes which will be used */
uintn i,j; /* counting variables */
- int mem_used=0; /* Memory used during allocation */
+ unsigned mem_used=0; /* Memory used during allocation */
herr_t ret; /* Generic return value */
/* Output message about test being performed */
@@ -242,7 +242,7 @@ test_vltypes_vlen_compound(void)
hsize_t dims1[] = {SPACE1_DIM1};
hsize_t size; /* Number of bytes which will be used */
uintn i,j; /* counting variables */
- int mem_used=0; /* Memory used during allocation */
+ unsigned mem_used=0; /* Memory used during allocation */
herr_t ret; /* Generic return value */
/* Output message about test being performed */
@@ -392,7 +392,7 @@ test_vltypes_compound_vlen_atomic(void)
hsize_t dims1[] = {SPACE1_DIM1};
hsize_t size; /* Number of bytes which will be used */
uintn i,j; /* counting variables */
- int mem_used=0; /* Memory used during allocation */
+ unsigned mem_used=0; /* Memory used during allocation */
herr_t ret; /* Generic return value */
/* Output message about test being performed */
@@ -565,7 +565,7 @@ test_vltypes_vlen_vlen_atomic(void)
hsize_t dims1[] = {SPACE1_DIM1};
hsize_t size; /* Number of bytes which will be used */
uintn i,j,k; /* counting variables */
- int mem_used=0; /* Memory used during allocation */
+ unsigned mem_used=0; /* Memory used during allocation */
herr_t ret; /* Generic return value */
/* Output message about test being performed */