diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-04-08 20:27:27 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-04-08 20:27:27 (GMT) |
commit | 7e723792ba5bf53a132409c5db22d1affebcac3f (patch) | |
tree | ca18377d513daf49e36bd0e043b5d70a657f277e /tools/h5diff/h5trav.c | |
parent | 86b0cc22c883c3c8faf3242cf10563577771ed00 (diff) | |
download | hdf5-7e723792ba5bf53a132409c5db22d1affebcac3f.zip hdf5-7e723792ba5bf53a132409c5db22d1affebcac3f.tar.gz hdf5-7e723792ba5bf53a132409c5db22d1affebcac3f.tar.bz2 |
[svn-r6599] Purpose:
code warrior port
Description:
replaced strdup with HDstrdup for CW portability
Solution:
Platforms tested:
w2000(CW , MS)
linux
arabica
modi4
Misc. update:
Diffstat (limited to 'tools/h5diff/h5trav.c')
-rw-r--r-- | tools/h5diff/h5trav.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/h5diff/h5trav.c b/tools/h5diff/h5trav.c index 039db0f..9096f34 100644 --- a/tools/h5diff/h5trav.c +++ b/tools/h5diff/h5trav.c @@ -18,6 +18,8 @@ #include "hdf5.h" #include "h5trav.h" +#include "H5private.h" + #ifndef FALSE #define FALSE 0 @@ -168,7 +170,7 @@ static herr_t opget_info( hid_t loc_id, const char *name, void *op_data) return 1; ((info_t *)op_data)->type = statbuf.type; - ((info_t *)op_data)->name = (char *)strdup(name); + ((info_t *)op_data)->name = (char *)HDstrdup(name); /* Define 1 for return. This will cause the iterator to stop */ return 1; @@ -271,7 +273,7 @@ int traverse( hid_t loc_id, const char *group_name, table_t *table, info_t *info /* add to array */ if ( info ) { - info[*idx].name = strdup(path); + info[*idx].name = (char *)HDstrdup(path); info[*idx].type = type; (*idx)++; } @@ -486,7 +488,7 @@ void table_add(unsigned long *objno, char *objname, table_t *table) table->objs[i].objno[0] = objno[0]; table->objs[i].objno[1] = objno[1]; free(table->objs[i].objname); - table->objs[i].objname = strdup(objname); + table->objs[i].objname = (char *)HDstrdup(objname); } |