mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
This commit is contained in:
parent
a02e07921e
commit
6d54973cbf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user