summaryrefslogtreecommitdiffstats
path: root/test/gen_new_fill.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 /test/gen_new_fill.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 'test/gen_new_fill.c')
-rw-r--r--test/gen_new_fill.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/gen_new_fill.c b/test/gen_new_fill.c
index 08c0882..0615504 100644
--- a/test/gen_new_fill.c
+++ b/test/gen_new_fill.c
@@ -14,15 +14,15 @@
/*
* Programmer: Raymond Lu <slu@ncsa.uiuc.edu>
- * Feb 27, 2002
+ * Feb 27, 2002
*
* Purpose: This program is run to generate a HDF5 data file with fill
* value property. A new fill value design has been put into
* library v1.5. To test compatibility between v1.4 and v1.5,
* compile and run this program, it will generate a file called
- * fill_new.h5. You need to move it to the /test directory
+ * fill_new.h5. You need to move it to the /test directory
* in HDF5 v1.4 source codes. The fillval.c program will read it.
- *
+ *
*/
#include "h5test.h"
@@ -46,16 +46,16 @@ int main()
if(H5Pset_fill_time(dcpl, H5D_ALLOC) < 0) goto error;
if(H5Pset_fill_value(dcpl, H5T_NATIVE_INT, &fill_val1)<0) goto error;
if((dset1 = H5Dcreate(file, "dset1", H5T_NATIVE_INT, space, dcpl))<0)
- goto error;
+ goto error;
if (H5Dget_space_status(dset1, &allocation)<0) goto error;
if (allocation == H5D_SPACE_STATUS_NOT_ALLOCATED) {
puts(" Got unallocated space instead of allocated.");
printf(" Got %d\n", allocation);
goto error;
}
- if(H5Dclose(dset1)<0) goto error;
+ if(H5Dclose(dset1)<0) goto error;
- /* Create a dataset with space allocation being delayed */
+ /* Create a dataset with space allocation being delayed */
if(H5Pset_space_time(dcpl, H5D_LATE) < 0) goto error;
if(H5Pset_fill_time(dcpl, H5D_ALLOC) < 0) goto error;
if(H5Pset_fill_value(dcpl, H5T_NATIVE_INT, &fill_val2)<0) goto error;