summaryrefslogtreecommitdiffstats
path: root/test/reserved.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/reserved.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/reserved.c')
-rwxr-xr-xtest/reserved.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/reserved.c b/test/reserved.c
index d08c02d..d664a36 100755
--- a/test/reserved.c
+++ b/test/reserved.c
@@ -178,8 +178,8 @@ rsrv_ohdr(void)
if( file_id < 0) TEST_ERROR;
/* Create the data space for the dataset. */
- dims[0] = 4;
- dims[1] = 6;
+ dims[0] = 4;
+ dims[1] = 6;
dataspace_id = H5Screate_simple(2, dims, NULL);
if( dataspace_id < 0) TEST_ERROR;
@@ -207,7 +207,7 @@ rsrv_ohdr(void)
if(status < 0)
break;
- }
+ }
/* The loop should have broken before completing--the file should not have had
* enough address space to hold 2000 attributes (or this test needs to be updated
@@ -265,7 +265,7 @@ rsrv_ohdr(void)
* enough file address space exists before writing.
* This function does this by creating a dataset containing
* variable length data past the limit of the file, then
- * ensuring that an error (not an assert) was generated and
+ * ensuring that an error (not an assert) was generated and
* that the file is readable.
*
* Return: Success: 0
@@ -308,7 +308,7 @@ rsrv_vlen(void)
if( file_id < 0) TEST_ERROR;
/* Create the data space for the dataset. */
- dims[0] = 2000;
+ dims[0] = 2000;
dataspace_id = H5Screate_simple(1, dims, NULL);
if( dataspace_id < 0) TEST_ERROR;
@@ -327,13 +327,13 @@ rsrv_vlen(void)
/* Create a memory dataspace for writing */
dims[0] = 1;
- mem_space_id = H5Screate_simple(1, dims, NULL);
+ mem_space_id = H5Screate_simple(1, dims, NULL);
if( mem_space_id < 0) TEST_ERROR;
/* Create a selection to write to */
start[0] = 0;
count[0] = 1;
- if( H5Sselect_hyperslab(dataspace_id, H5S_SELECT_SET,
+ if( H5Sselect_hyperslab(dataspace_id, H5S_SELECT_SET,
start, NULL, count, NULL) < 0) TEST_ERROR;
for (i = 0; i< 2000; i++)
@@ -341,7 +341,7 @@ rsrv_vlen(void)
vlen_data.len = (i%20) + 1;
offset[0] = i;
- if( H5Soffset_simple(dataspace_id, offset) <0) TEST_ERROR;
+ if( H5Soffset_simple(dataspace_id, offset) <0) TEST_ERROR;
H5E_BEGIN_TRY
status = H5Dwrite(dataset_id, type_id, mem_space_id, dataspace_id, H5P_DEFAULT, &vlen_data);
@@ -349,7 +349,7 @@ rsrv_vlen(void)
if(status < 0)
break;
- }
+ }
/* The loop should have broken before completing--the file should not have had
* enough address space to hold 2000 attributes (or this test needs to be updated!).
@@ -406,11 +406,11 @@ rsrv_vlen(void)
/*-------------------------------------------------------------------------
* Function: main
*
- * Purpose:
+ * Purpose:
*
- * Return: Success:
+ * Return: Success:
*
- * Failure:
+ * Failure:
*
* Programmer: Nat Furrer and James Laird
* Thursday, July 1, 2004