summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-01-10 21:46:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-01-10 21:46:38 (GMT)
commitc5c4e70311882501516f8ce15d7c97f0be0ad1d8 (patch)
tree019f34572c3ff77a121c2bcd09672edd7e02f044 /tools/h5tools.c
parent8e20f98805d784a57afdaf73012d96a6ea1f1a30 (diff)
downloadhdf5-c5c4e70311882501516f8ce15d7c97f0be0ad1d8.zip
hdf5-c5c4e70311882501516f8ce15d7c97f0be0ad1d8.tar.gz
hdf5-c5c4e70311882501516f8ce15d7c97f0be0ad1d8.tar.bz2
[svn-r3265] Purpose:
Clean up warnings. Description: Cleaned up a few compiler warnings. Platforms tested: FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index 8469c8c..3b8f0c8 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -14,7 +14,6 @@
* by Don Libes, copyright (c) 1993 by John Wiley & Sons, Inc.
*/
-#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
@@ -135,7 +134,7 @@ int
get_option(int argc, const char **argv, const char *opts, const struct long_options *l_opts)
{
static int sp = 1; /* character index in current token */
- int opt_opt; /* option character passed back to user */
+ int opt_opt='?'; /* option character passed back to user */
if (sp == 1) {
/* check for more flag-like tokens */
@@ -153,7 +152,7 @@ get_option(int argc, const char **argv, const char *opts, const struct long_opti
register int i;
for (i = 0; l_opts && l_opts[i].name; i++) {
- int len = strlen(l_opts[i].name);
+ size_t len = strlen(l_opts[i].name);
if (strncmp(arg, l_opts[i].name, len) == 0) {
/* we've found a matching long command line flag */
@@ -2643,7 +2642,7 @@ h5dump_fopen(const char *fname, char *drivername, size_t drivername_size)
#ifndef VERSION12
driver[ndrivers].name = "family";
driver[ndrivers].fapl = fapl = H5Pcreate(H5P_FILE_ACCESS);
- H5Pset_fapl_family(fapl, 0, H5P_DEFAULT);
+ H5Pset_fapl_family(fapl, (hsize_t)0, H5P_DEFAULT);
ndrivers++;
driver[ndrivers].name = "split";