summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_verify.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-18 18:08:04 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-18 18:08:04 (GMT)
commit6eb624a09d282d0f1346afe769f0fb2654b4de58 (patch)
treed2c7d29e609b1f31ef71390a0c61da603f8d779e /tools/h5repack/h5repack_verify.c
parentfffa1adc9aa4f0e2b099f130750346b4526c15d1 (diff)
downloadhdf5-6eb624a09d282d0f1346afe769f0fb2654b4de58.zip
hdf5-6eb624a09d282d0f1346afe769f0fb2654b4de58.tar.gz
hdf5-6eb624a09d282d0f1346afe769f0fb2654b4de58.tar.bz2
[svn-r15653] cleaned warnings
tested: windows, linux
Diffstat (limited to 'tools/h5repack/h5repack_verify.c')
-rw-r--r--tools/h5repack/h5repack_verify.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/h5repack/h5repack_verify.c b/tools/h5repack/h5repack_verify.c
index fed4499..a7454d6 100644
--- a/tools/h5repack/h5repack_verify.c
+++ b/tools/h5repack/h5repack_verify.c
@@ -19,7 +19,7 @@
extern char *progname;
static int has_layout(hid_t pid, pack_info_t *obj);
-static int has_filters(hid_t pid, hid_t tid, unsigned nfilters, filter_info_t *filter);
+static int has_filters(hid_t pid, hid_t tid, int nfilters, filter_info_t *filter);
/*-------------------------------------------------------------------------
@@ -442,16 +442,18 @@ error:
*-------------------------------------------------------------------------
*/
-static int has_filters(hid_t pid, hid_t tid, unsigned nfilters, filter_info_t *filter)
+static
+int has_filters(hid_t pid, hid_t tid, int nfilters, filter_info_t *filter)
{
- unsigned nfilters_dcpl; /* number of filters in DCPL*/
+ int nfilters_dcpl; /* number of filters in DCPL*/
unsigned filt_flags; /* filter flags */
H5Z_filter_t filtn; /* filter identification number */
unsigned cd_values[20]; /* filter client data values */
size_t cd_nelmts; /* filter client number of values */
char f_name[256]; /* filter name */
size_t size; /* type size */
- unsigned i, j; /* index */
+ int i; /* index */
+ unsigned j; /* index */
/* get information about filters */
if((nfilters_dcpl = H5Pget_nfilters(pid)) < 0)
@@ -475,7 +477,7 @@ static int has_filters(hid_t pid, hid_t tid, unsigned nfilters, filter_info_t *f
for( i = 0; i < nfilters_dcpl; i++)
{
cd_nelmts = NELMTS(cd_values);
- filtn = H5Pget_filter2(pid, i, &filt_flags, &cd_nelmts,
+ filtn = H5Pget_filter2(pid, (unsigned)i, &filt_flags, &cd_nelmts,
cd_values, sizeof(f_name), f_name, NULL);
/* filter ID */