From d16f5a88424a4dfe1e8c902123ac8d370965f179 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 24 Aug 2016 09:36:54 -0600 Subject: [PATCH] Whitespace cleanup --- libsrc4/nc4hdf.c | 12 ++++++------ libsrc4/nc4internal.c | 4 ++-- libsrc4/nc4var.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libsrc4/nc4hdf.c b/libsrc4/nc4hdf.c index 7949e9f5b..150d00bbf 100644 --- a/libsrc4/nc4hdf.c +++ b/libsrc4/nc4hdf.c @@ -81,7 +81,7 @@ rec_reattach_scales(NC_GRP_INFO_T *grp, int dimid, hid_t dimscaleid) return retval; /* Find any vars that use this dimension id. */ - for (i=0; i < grp->vars.nelems; i++) + for (i=0; i < grp->vars.nelems; i++) { var = grp->vars.value[i]; if (!var) continue; @@ -124,7 +124,7 @@ rec_detach_scales(NC_GRP_INFO_T *grp, int dimid, hid_t dimscaleid) return retval; /* Find any vars that use this dimension id. */ - for (i=0; i < grp->vars.nelems; i++) + for (i=0; i < grp->vars.nelems; i++) { var = grp->vars.value[i]; if (!var) continue; @@ -2065,7 +2065,7 @@ attach_dimscales(NC_GRP_INFO_T *grp) int retval = NC_NOERR; /* Attach dimension scales. */ - for (i=0; i < grp->vars.nelems; i++) + for (i=0; i < grp->vars.nelems; i++) { var = grp->vars.value[i]; if (!var) continue; @@ -2448,7 +2448,7 @@ write_dim(NC_DIM_INFO_T *dim, NC_GRP_INFO_T *grp, nc_bool_t write_dimid) /* If this is a dimension without a variable, then update * the secret length information at the end of the NAME * attribute. */ - for (i=0; i < grp->vars.nelems; i++) + for (i=0; i < grp->vars.nelems; i++) { if (grp->vars.value[i] && !strcmp(grp->vars.value[i]->name, dim->name)) { @@ -2509,7 +2509,7 @@ nc4_rec_detect_need_to_preserve_dimids(NC_GRP_INFO_T *grp, nc_bool_t *bad_coord_ int i; /* Iterate over variables in this group */ - for (i=0; i < grp->vars.nelems; i++) + for (i=0; i < grp->vars.nelems; i++) { var = grp->vars.value[i]; if (!var) continue; @@ -3664,7 +3664,7 @@ nc4_rec_match_dimscales(NC_GRP_INFO_T *grp) /* Check all the vars in this group. If they have dimscale info, * try and find a dimension for them. */ - for (i=0; i < grp->vars.nelems; i++) + for (i=0; i < grp->vars.nelems; i++) { var = grp->vars.value[i]; if (!var) continue; diff --git a/libsrc4/nc4internal.c b/libsrc4/nc4internal.c index 47c2b1936..d1e630aea 100644 --- a/libsrc4/nc4internal.c +++ b/libsrc4/nc4internal.c @@ -1128,7 +1128,7 @@ nc4_rec_grp_del(NC_GRP_INFO_T **list, NC_GRP_INFO_T *grp) NC_TYPE_INFO_T *type, *t; int retval; int i; - + assert(grp); LOG((3, "%s: grp->name %s", __func__, grp->name)); @@ -1160,7 +1160,7 @@ nc4_rec_grp_del(NC_GRP_INFO_T **list, NC_GRP_INFO_T *grp) { var = grp->vars.value[i]; if (!var) continue; - + LOG((4, "%s: deleting var %s", __func__, var->name)); /* Close HDF5 dataset associated with this var, unless it's a * scale. */ diff --git a/libsrc4/nc4var.c b/libsrc4/nc4var.c index 6a0487381..2da0d3e20 100644 --- a/libsrc4/nc4var.c +++ b/libsrc4/nc4var.c @@ -1205,7 +1205,7 @@ NC4_rename_var(int ncid, int varid, const char *name) uint32_t nn_hash; int retval = NC_NOERR; int i; - + LOG((2, "%s: ncid 0x%x varid %d name %s", __func__, ncid, varid, name));