From 1494413413932f1e640815d109fd1e8386bab3f9 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Mon, 1 Aug 2016 12:26:41 -0500 Subject: [svn-r30236] HDFFV-9928: remove duplicate and unconditional includes in h5diff_array. Also format function block in h5diff_attr to eliminate excessive whitespace --- tools/lib/h5diff_array.c | 4 ---- 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 -#include -#include - #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; -- cgit v0.12