summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/testh5diff_util.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /tools/h5diff/testh5diff_util.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'tools/h5diff/testh5diff_util.c')
-rw-r--r--tools/h5diff/testh5diff_util.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/h5diff/testh5diff_util.c b/tools/h5diff/testh5diff_util.c
index b0abf81..5e81881 100644
--- a/tools/h5diff/testh5diff_util.c
+++ b/tools/h5diff/testh5diff_util.c
@@ -27,16 +27,16 @@
*-------------------------------------------------------------------------
*/
-
-int write_attr(hid_t loc_id,
- int rank,
- hsize_t *dims,
+
+int write_attr(hid_t loc_id,
+ int rank,
+ hsize_t *dims,
const char *attr_name,
- hid_t type_id,
+ hid_t type_id,
void *buf)
{
hid_t attr_id;
- hid_t space_id;
+ hid_t space_id;
herr_t status;
/* Create a buf space */
@@ -44,7 +44,7 @@ int write_attr(hid_t loc_id,
/* Create the attribute */
attr_id = H5Acreate(loc_id,attr_name,type_id,space_id,H5P_DEFAULT);
-
+
/* Write the buf */
if ( buf )
status = H5Awrite(attr_id,type_id,buf);
@@ -68,15 +68,15 @@ int write_attr(hid_t loc_id,
*/
-int write_dset( hid_t loc_id,
- int rank,
- hsize_t *dims,
+int write_dset( hid_t loc_id,
+ int rank,
+ hsize_t *dims,
const char *dset_name,
- hid_t type_id,
+ hid_t type_id,
void *buf )
{
hid_t dset_id;
- hid_t space_id;
+ hid_t space_id;
herr_t status;
/* Create a buf space */
@@ -84,7 +84,7 @@ int write_dset( hid_t loc_id,
/* Create a dataset */
dset_id = H5Dcreate(loc_id,dset_name,type_id,space_id,H5P_DEFAULT);
-
+
/* Write the buf */
if ( buf )
status = H5Dwrite(dset_id,type_id,H5S_ALL,H5S_ALL,H5P_DEFAULT,buf);