summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_attr.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-08-01 17:26:41 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-08-01 17:26:41 (GMT)
commit1494413413932f1e640815d109fd1e8386bab3f9 (patch)
tree46692e0334e71b7d64542231761705f3d96edd2f /tools/lib/h5diff_attr.c
parent4ce65b85850fd7bd28c36b25619d025611afacce (diff)
downloadhdf5-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/lib/h5diff_attr.c')
-rw-r--r--tools/lib/h5diff_attr.c14
1 files changed, 6 insertions, 8 deletions
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;