summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-04 15:47:23 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-04 15:47:23 (GMT)
commita7c167e38969aeb2bc98c6f03e0a9a0584cacfb5 (patch)
tree7d3902571ec793daef6aa79fcd615f14df543310 /tools/h5ls.c
parent58b40b848ceb2ba1aadbdfc17610a96b45723dac (diff)
downloadhdf5-a7c167e38969aeb2bc98c6f03e0a9a0584cacfb5.zip
hdf5-a7c167e38969aeb2bc98c6f03e0a9a0584cacfb5.tar.gz
hdf5-a7c167e38969aeb2bc98c6f03e0a9a0584cacfb5.tar.bz2
[svn-r1298]
added a new variable to the tools lib that keeps track of what program is using the library. h5ls.c and h5dump.c needed to init the variable to the correct value for the programtype variable. this variable will hopefully only be temporary until the lib gets combined farther
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index cf8e905..e008510 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1741,6 +1741,9 @@ main (int argc, char *argv[])
DISPATCH(H5G_RAGGED, "Ragged Array", H5Gopen, H5Gclose,
NULL, ragged_list2);
+ /*init the programtype var fromthe tools lib*/
+ programtype = H5LS;
+
/* Name of this program without the path */
if ((progname=strrchr(argv[0], '/'))) progname++;
else progname = argv[0];