summaryrefslogtreecommitdiffstats
path: root/tools/h5ls
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>2002-02-01 19:05:14 (GMT)
committerRobb Matzke <matzke@llnl.gov>2002-02-01 19:05:14 (GMT)
commit84f632178c565ef27dc5471d0127b001cadf5265 (patch)
tree7fa4ac0bddebc10b0273a3992e46dc8d920033ec /tools/h5ls
parent378df38955700bffd90303965e1685341e785b1d (diff)
downloadhdf5-84f632178c565ef27dc5471d0127b001cadf5265.zip
hdf5-84f632178c565ef27dc5471d0127b001cadf5265.tar.gz
hdf5-84f632178c565ef27dc5471d0127b001cadf5265.tar.bz2
[svn-r4898] ./hdf5-devel/tools/h5ls/h5ls.c
Fixed copyright notice
Diffstat (limited to 'tools/h5ls')
-rw-r--r--tools/h5ls/h5ls.c14
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) {