summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--tools/h5dump.c3
-rw-r--r--tools/h5ls.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index dde74b5..f50f487 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -1267,6 +1267,9 @@ H5Eset_auto (NULL, NULL);
exit(1);
}
+/*init the programtype var fromt he tools lib*/
+ programtype = H5DUMP;
+
opts = malloc((argc/2) * sizeof (int));
opts[0] = -1;
/* parse command line options */
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];