summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5import.c1
-rw-r--r--tools/h5ls.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/h5import.c b/tools/h5import.c
index dd88ba6..9fc2454 100644
--- a/tools/h5import.c
+++ b/tools/h5import.c
@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
+#include <unistd.h>
/*-------------------------------------------------------------------------
diff --git a/tools/h5ls.c b/tools/h5ls.c
index 13e4830..a311c5b 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -386,8 +386,8 @@ list (hid_t group, const char *name, void __unused__ *cd)
H5Gget_comment(group, name, sizeof(comment), comment);
strcpy(comment+sizeof(comment)-4, "...");
if (comment[0]) printf(" %-10s %s\n", "Comment:", comment);
- if (dispatch_g[sb.type].list2) (dispatch_g[sb.type].list2)(obj);
}
+ if (dispatch_g[sb.type].list2) (dispatch_g[sb.type].list2)(obj);
/*
* Close the object.