summaryrefslogtreecommitdiffstats
path: root/tools
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
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')
-rw-r--r--tools/h5dump.c5
-rw-r--r--tools/h5tools.c7
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index b5a7b7c..a1e2fca 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -841,7 +841,8 @@ static herr_t
dump_selected_attr(hid_t loc_id, const char *name)
{
int j;
- char *obj_name, *attr_name;
+ char *obj_name;
+ const char *attr_name;
hid_t oid, attr_id, type, space;
H5G_stat_t statbuf;
@@ -1708,7 +1709,7 @@ main(int argc, const char *argv[])
h5tools_init();
/* this will be plenty big enough for holding the info */
- hand = calloc(argc, sizeof(struct handler_t));
+ hand = calloc((size_t)argc, sizeof(struct handler_t));
/* parse command line options */
while ((opt = get_option(argc, argv, s_opts, l_opts)) != EOF) {
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";