summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5ls.c2
-rw-r--r--tools/h5tools.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index 4d4d978..3e5b1a4 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -2133,7 +2133,7 @@ main (int argc, char *argv[])
*oname = '\0';
}
if (file<0) {
- fprintf(stderr, "%s: unable to open file\n", fname);
+ fprintf(stderr, "%s: unable to open file\n", argv[argno-1]);
}
if (oname) oname++;
if (!oname || !*oname) oname = root_name;
diff --git a/tools/h5tools.c b/tools/h5tools.c
index 5dbb7ff..2eca598 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -1426,7 +1426,6 @@ h5dump_simple_mem(FILE *stream, const h5dump_t *info, hid_t type,
hid_t space, void *mem)
{
hsize_t i; /*counters */
- size_t size; /*size of each element */
hsize_t nelmts; /*total selected elmts */
h5dump_context_t ctx; /*printing context */
@@ -1447,7 +1446,6 @@ h5dump_simple_mem(FILE *stream, const h5dump_t *info, hid_t type,
nelmts *= ctx.p_max_idx[i] - ctx.p_min_idx[i];
}
if (0==nelmts) return 0; /*nothing to print*/
- size = H5Tget_size(type);
/* Print it */
h5dump_simple_data(stream, info, -1/*no dataset*/, &ctx,