diff options
Diffstat (limited to 'tools/h5ls/h5ls.c')
-rw-r--r-- | tools/h5ls/h5ls.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index df9b0b5..e5cd9a5 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -1,6 +1,7 @@ /* - * Copyright (C) 1998 NCSA - * All rights reserved. + * Copyright (C) 1998-2002 NCSA + * For conditions of distribution and use, see the accompanying + * COPYING file. * * Programmer: Robb Matzke <matzke@llnl.gov> * Monday, March 23, 1998 @@ -1311,7 +1312,7 @@ list_attr (hid_t obj, const char *attr_name, void * UNUSED op_data) hsize_t size[64], nelmts=1; int ndims, i, n; size_t need; - hsize_t temp_need; + hsize_t temp_need; void *buf; h5dump_t info; @@ -1374,10 +1375,9 @@ list_attr (hid_t obj, const char *attr_name, void * UNUSED op_data) p_type = h5tools_fixtype(type); } if (p_type>=0) { - temp_need= nelmts * MAX(H5Tget_size(type), H5Tget_size(p_type)); - assert(temp_need==(hsize_t)((size_t)temp_need)); - need = (size_t)temp_need; - /*need = nelmts * MAX(H5Tget_size(type), H5Tget_size(p_type));*/ + temp_need= nelmts * MAX(H5Tget_size(type), H5Tget_size(p_type)); + assert(temp_need==(hsize_t)((size_t)temp_need)); + need = (size_t)temp_need; buf = malloc(need); assert(buf); if (H5Aread(attr, p_type, buf)>=0) { |