diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-11-10 20:59:32 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-11-10 20:59:32 (GMT) |
commit | b00b2d31e70f76b0992df896454e16b8a2266d64 (patch) | |
tree | 906320b4c21173f58eac1d5da21ec8b297cc9902 /tools/h5repack/h5repack_list.c | |
parent | 823619b1f8f0f766f9ce311e8f694cf93bd25499 (diff) | |
download | hdf5-b00b2d31e70f76b0992df896454e16b8a2266d64.zip hdf5-b00b2d31e70f76b0992df896454e16b8a2266d64.tar.gz hdf5-b00b2d31e70f76b0992df896454e16b8a2266d64.tar.bz2 |
[svn-r7833] Purpose:
bug fix, clean code
Description:
a malloced buffer was not release
cleaned some compiler warnings
Platforms tested:
linux
solaris 2.7
IRIX
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_list.c')
-rw-r--r-- | tools/h5repack/h5repack_list.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/h5repack/h5repack_list.c b/tools/h5repack/h5repack_list.c index 81b56ce..f1142f2 100644 --- a/tools/h5repack/h5repack_list.c +++ b/tools/h5repack/h5repack_list.c @@ -37,7 +37,8 @@ */ -int get_objlist(char* fname, pack_opt_t *options) +int get_objlist(const char* fname, + pack_opt_t *options) { hid_t fid; int nobjects, i; @@ -139,8 +140,8 @@ int get_objlist(char* fname, pack_opt_t *options) *------------------------------------------------------------------------- */ -int copy_file(char* fnamein, - char* fnameout, +int copy_file(const char* fnamein, + const char* fnameout, pack_opt_t *options) { hid_t fidin; @@ -231,7 +232,7 @@ int copy_file(char* fnamein, * *------------------------------------------------------------------------- */ -void print_objlist(char *filename, +void print_objlist(const char *filename, int nobjects, trav_info_t *info ) { |