summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_list.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-11-10 20:59:32 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-11-10 20:59:32 (GMT)
commitb00b2d31e70f76b0992df896454e16b8a2266d64 (patch)
tree906320b4c21173f58eac1d5da21ec8b297cc9902 /tools/h5repack/h5repack_list.c
parent823619b1f8f0f766f9ce311e8f694cf93bd25499 (diff)
downloadhdf5-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.c9
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 )
{