diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-18 20:22:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-18 20:22:10 (GMT) |
commit | d41b9fffdfca2e97c36bc0ad0899fbb7b055f926 (patch) | |
tree | 51ed39b08a41a4f6947af07630eb40dfdb013d87 /test/tvltypes.c | |
parent | fcaf572430a8eda3f6519bd21311ef7a8e3c3c1f (diff) | |
download | hdf5-d41b9fffdfca2e97c36bc0ad0899fbb7b055f926.zip hdf5-d41b9fffdfca2e97c36bc0ad0899fbb7b055f926.tar.gz hdf5-d41b9fffdfca2e97c36bc0ad0899fbb7b055f926.tar.bz2 |
[svn-r4012] Purpose:
Clean up compiler warnings.
Description:
Just code neatening mostly, some casts, etc.
Platforms tested:
FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'test/tvltypes.c')
-rw-r--r-- | test/tvltypes.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/tvltypes.c b/test/tvltypes.c index 3dc4b3f..8fb6b9a 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 */ + size_t *mem_used=(size_t *)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 */ + size_t *mem_used=(size_t *)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 */ + size_t 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 */ + size_t 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 */ + size_t mem_used=0; /* Memory used during allocation */ herr_t ret; /* Generic return value */ /* Output message about test being performed */ @@ -531,11 +531,11 @@ test_vltypes_compound_vlen_atomic(void) ** Tests VL datatype with VL datatypes of atomic datatypes. ** ****************************************************************/ -static unsigned long vlen_size_func(unsigned long n) +static size_t vlen_size_func(unsigned long n) { - unsigned long u=1; - unsigned long tmp=1; - unsigned long result=1; + size_t u=1; + size_t tmp=1; + size_t result=1; while(u<n) { u++; @@ -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 */ + size_t mem_used=0; /* Memory used during allocation */ herr_t ret; /* Generic return value */ /* Output message about test being performed */ |