diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-08-01 17:26:41 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-08-01 17:26:41 (GMT) |
commit | 1494413413932f1e640815d109fd1e8386bab3f9 (patch) | |
tree | 46692e0334e71b7d64542231761705f3d96edd2f /tools | |
parent | 4ce65b85850fd7bd28c36b25619d025611afacce (diff) | |
download | hdf5-1494413413932f1e640815d109fd1e8386bab3f9.zip hdf5-1494413413932f1e640815d109fd1e8386bab3f9.tar.gz hdf5-1494413413932f1e640815d109fd1e8386bab3f9.tar.bz2 |
[svn-r30236] HDFFV-9928: remove duplicate and unconditional includes in h5diff_array.
Also format function block in h5diff_attr to eliminate excessive whitespace
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/h5diff_array.c | 4 | ||||
-rw-r--r-- | tools/lib/h5diff_attr.c | 14 |
2 files changed, 6 insertions, 12 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c index 7897e49..9aadffe 100644 --- a/tools/lib/h5diff_array.c +++ b/tools/lib/h5diff_array.c @@ -13,10 +13,6 @@ * access to either file, you may request a copy from help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include <math.h> -#include <time.h> -#include <sys/timeb.h> - #include "H5private.h" #include "h5tools.h" #include "h5tools_utils.h" diff --git a/tools/lib/h5diff_attr.c b/tools/lib/h5diff_attr.c index 2b6e080..2cda28c 100644 --- a/tools/lib/h5diff_attr.c +++ b/tools/lib/h5diff_attr.c @@ -75,14 +75,12 @@ static void table_attrs_free( table_attrs_t *table ) { unsigned int i; - if (table) - { - if(table->attrs) - { - for(i = 0; i < table->nattrs; i++) - { - if(table->attrs[i].name) - HDfree(table->attrs[i].name ); + if (table) { + if (table->attrs) { + for (i = 0; i < table->nattrs; i++) { + if (table->attrs[i].name) { + HDfree(table->attrs[i].name); + } } /* end for */ HDfree(table->attrs); table->attrs = NULL; |