diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-09 03:51:03 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-09 03:51:03 (GMT) |
commit | 25d1056dbff92a7662ee73c67596d24906530dbc (patch) | |
tree | d98bc79a6ffdcf85f4b1f375523991070505acb7 /hl/test/test_lite.c | |
parent | 6a18d20b406b2285fbf1d3f6c830b8147635597b (diff) | |
download | hdf5-25d1056dbff92a7662ee73c67596d24906530dbc.zip hdf5-25d1056dbff92a7662ee73c67596d24906530dbc.tar.gz hdf5-25d1056dbff92a7662ee73c67596d24906530dbc.tar.bz2 |
[svn-r12734] Description:
Clean up some compiler warnings.
Tested on:
FreeBSD/32 4.11 (sleipnir) w/threadsafe
Linux/32 2.4 (heping) w/FORTRAN & C++
Linux/64 2.4 (mir) w/enable-1.6-compat
Diffstat (limited to 'hl/test/test_lite.c')
-rw-r--r-- | hl/test/test_lite.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c index 19d772f..74b3099 100644 --- a/hl/test/test_lite.c +++ b/hl/test/test_lite.c @@ -1424,7 +1424,7 @@ static int test_arrays(void) if(ndims != 3) goto out; - if(H5Tget_array_dims(dtype, dims, NULL)<0) + if(H5Tget_array_dims(dtype, dims, NULL) < 0) goto out; if(dims[0] != 5 || dims[1] != 7 || dims[2] != 13) goto out; @@ -1525,10 +1525,9 @@ static int test_complicated_compound(void) hid_t dtype; int nmembs; H5T_class_t type_class; - size_t str_len; char* line=NULL; FILE *fp; - int size = 1024; + size_t size = 1024; char *srcdir = getenv("srcdir"); /* the source directory */ char filename[1024]=""; @@ -1556,7 +1555,7 @@ static int test_complicated_compound(void) */ if((line = (char*)calloc(size, sizeof(char)))==NULL) goto out; - if(fgets(line, size, fp)==NULL) + if(fgets(line, (int)size, fp)==NULL) goto out; while(strlen(line)==size-1) { size *= 2; @@ -1566,7 +1565,7 @@ static int test_complicated_compound(void) goto out; if(fseek(fp, 0L, SEEK_SET)!=0) goto out; - if(fgets(line, size, fp)==NULL) + if(fgets(line, (int)size, fp)==NULL) goto out; } |