diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2003-08-08 15:19:55 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2003-08-08 15:19:55 (GMT) |
commit | 6d54973cbfb270f8326aacb1218541f8af2122db (patch) | |
tree | e7ec51e7004f54bf34e9e7b9f0029ce279cb8952 /tools/h5dump | |
parent | a02e07921ea689312b262716e0987ca53c77063c (diff) | |
download | hdf5-6d54973cbfb270f8326aacb1218541f8af2122db.zip hdf5-6d54973cbfb270f8326aacb1218541f8af2122db.tar.gz hdf5-6d54973cbfb270f8326aacb1218541f8af2122db.tar.bz2 |
[svn-r7286] Purpose:
bug fix
Description:
1. function rindex is not recognized by windows. Using strrchr instead.
Thereafer strings.h is not necessary.
2. Variable p_type is defined as "hid_t" type at one function; but it is never used.
At the end of that function, H5Tclose(p_type) is assigned. It may cause problems.
So erase two lines.
Solution:
See above
Platforms tested:
windows 2000, linux 2.4, sol 2.7, AIX 5.1.
Misc. update:
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index a6a1ed0..9c26e20 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -18,7 +18,6 @@ #include "H5private.h" #include "h5tools.h" #include "h5tools_utils.h" -#include <strings.h> /* module-scoped variables */ static const char *progname = "h5dump"; @@ -2913,7 +2912,7 @@ main(int argc, const char *argv[]) char * ns; char *indx; ns = strdup(xmlnsprefix); - indx = rindex(ns,(int)':'); + indx = strrchr(ns,(int)':'); if (indx) *indx = '\0'; printf("<%sHDF5-File xmlns:%s=\"http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File\" " @@ -5162,7 +5161,6 @@ static void xml_dump_fill_value(hid_t dcpl, hid_t type) int sz; int i; hsize_t space; -hid_t p_type; void * buf; char * path; char * name; @@ -5271,7 +5269,6 @@ char * name; break; } free(buf); - H5Tclose(p_type); } indent -= COL; indentation(indent); |