summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-07-01 20:02:47 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-07-01 20:02:47 (GMT)
commite5e786f589896da6f6414da51b56ccc119df8adb (patch)
tree69c21934ad23b0b71326a8fb8b40c384aca92f24 /tools
parenteab58732d86e9219fa9f41f9ab2e30fae94e4a7d (diff)
downloadhdf5-e5e786f589896da6f6414da51b56ccc119df8adb.zip
hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.tar.gz
hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.tar.bz2
[svn-r8782] Purpose:
Code cleanup Description: Clean up almost all warnings from Windows builds. Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel Too minor to require h5committest
Diffstat (limited to 'tools')
-rw-r--r--tools/h5dump/h5dump.c4
-rw-r--r--tools/h5ls/h5ls.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index ed41369..cfc4955 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -3712,7 +3712,7 @@ print_enum(hid_t type)
/* Convert values to native data type */
if (native > 0)
- H5Tconvert(super, native, (hsize_t)nmembs, value, NULL, H5P_DEFAULT);
+ H5Tconvert(super, native, nmembs, value, NULL, H5P_DEFAULT);
/*
* Sort members by increasing value
@@ -6156,7 +6156,7 @@ xml_print_enum(hid_t type)
/* Convert values to native data type */
if (native > 0)
- H5Tconvert(super, native, (hsize_t)nmembs, value, NULL, H5P_DEFAULT);
+ H5Tconvert(super, native, nmembs, value, NULL, H5P_DEFAULT);
/* Sort members by increasing value */
/*not implemented yet */
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index ed73af4..7107162 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -801,7 +801,7 @@ display_enum_type(hid_t type, int ind)
}
/* Convert values to native data type */
- if (native>0) H5Tconvert(super, native, (hsize_t)nmembs, value, NULL, H5P_DEFAULT);
+ if (native>0) H5Tconvert(super, native, nmembs, value, NULL, H5P_DEFAULT);
/* Sort members by increasing value */
/*not implemented yet*/
@@ -2216,7 +2216,7 @@ main (int argc, const char *argv[])
* doesn't exist). */
show_file_name_g = (argc-argno > 1); /*show file names if more than one*/
while (argno<argc) {
- fname = argv[argno++];
+ fname = HDstrdup(argv[argno++]);
oname = NULL;
file = -1;
@@ -2266,6 +2266,7 @@ main (int argc, const char *argv[])
if (H5Gclose(root)<0) leave(1);
}
H5Fclose(file);
+ free(fname);
}
leave(0);
}