diff options
Diffstat (limited to 'tools/test/h5dump/h5dumpgentest.c')
-rw-r--r-- | tools/test/h5dump/h5dumpgentest.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c index 9c48573..6dbb700 100644 --- a/tools/test/h5dump/h5dumpgentest.c +++ b/tools/test/h5dump/h5dumpgentest.c @@ -11417,14 +11417,14 @@ gent_onion_1d_dset() *---------------------------------------------------------------------- */ file_id = H5Fopen(paths->canon, H5F_ACC_RDWR, fapl_id); - goto error; + goto error; if (H5I_INVALID_HID == file_id) { printf("\n\n\n\nERROR OPENING\n\n\n\n"); goto error; } dset = H5Dopen(file_id, "DS1", H5P_DEFAULT); - goto error; + goto error; if (dset < 0) { printf("\n\n\n\nERROR OPENING DSET\n\n\n\n"); goto error; @@ -11467,12 +11467,12 @@ gent_onion_1d_dset() goto error; if (H5Pclose(fapl_id) < 0) goto error; - if (H5Pclose(onion_info.backing_fapl_id) < 0) + if (H5Pclose(onion_info.backing_fapl_id) < 0) goto error; onion_filepaths_destroy(paths); - return 0; + return 0; error: H5E_BEGIN_TRY @@ -11503,10 +11503,10 @@ gent_onion_create_delete_objects(void) 0, /* creation flags, was H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT */ "initial commit" /* comment */ }; - hid_t group_id = H5I_INVALID_HID; - hid_t attr_space_id = H5I_INVALID_HID, attr_id = H5I_INVALID_HID; - hsize_t attr_dim[1] = {4}; - + hid_t group_id = H5I_INVALID_HID; + hid_t attr_space_id = H5I_INVALID_HID, attr_id = H5I_INVALID_HID; + hsize_t attr_dim[1] = {4}; + /* Set up */ if ((onion_info.backing_fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0) goto error; @@ -11526,7 +11526,7 @@ gent_onion_create_delete_objects(void) hid_t file, space, dset, dcpl; /* Handles */ hsize_t dims[2] = {4, 4}, maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED}, chunk[2] = {4, 4}; int wdata[4][4], /* Write buffer */ - fillval, i, j; + fillval, i, j; /* * Initialize data. @@ -11547,7 +11547,7 @@ gent_onion_create_delete_objects(void) if ((space = H5Screate_simple(2, dims, maxdims)) < 0) goto error; - /* + /* * Create the dataset creation property list, and set the chunk * size. */ @@ -11589,7 +11589,7 @@ gent_onion_create_delete_objects(void) goto error; /*---------------------------------------------------------------------- - * First revision: open the file with Onion VFD and add a dataset (DS2) to the file + * First revision: open the file with Onion VFD and add a dataset (DS2) to the file *---------------------------------------------------------------------- */ if ((file = H5Fopen(paths->canon, H5F_ACC_RDWR, fapl_id)) < 0) @@ -11607,7 +11607,6 @@ gent_onion_create_delete_objects(void) if (H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata) < 0) goto error; - if (H5Dclose(dset) < 0) goto error; dset = H5I_INVALID_HID; @@ -11625,7 +11624,7 @@ gent_onion_create_delete_objects(void) if (H5Ldelete(file, "DS2", H5P_DEFAULT) < 0) goto error; - + if (H5Fclose(file) < 0) goto error; file = H5I_INVALID_HID; @@ -11640,7 +11639,8 @@ gent_onion_create_delete_objects(void) /* Create dataspace for attribute */ attr_space_id = H5Screate_simple(1, attr_dim, NULL); - if ((attr_id = H5Acreate(file, "file_attribute", H5T_STD_I32LE, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) + if ((attr_id = + H5Acreate(file, "file_attribute", H5T_STD_I32LE, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; if (H5Sclose(attr_space_id) < 0) @@ -11726,7 +11726,7 @@ error: if (fapl_id != H5I_INVALID_HID) (void)H5Pclose(fapl_id); if (onion_info.backing_fapl_id != H5I_INVALID_HID) - H5Pclose(onion_info.backing_fapl_id); + H5Pclose(onion_info.backing_fapl_id); return -1; } /* gent_onion_create_delete_objects */ @@ -11747,15 +11747,15 @@ gent_onion_dset_extension(void) 0, /* creation flags, was H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT */ "initial commit" /* comment */ }; - hid_t file = H5I_INVALID_HID, group_id = H5I_INVALID_HID; - hid_t attr_space_id = H5I_INVALID_HID, attr_id = H5I_INVALID_HID; + hid_t file = H5I_INVALID_HID, group_id = H5I_INVALID_HID; + hid_t attr_space_id = H5I_INVALID_HID, attr_id = H5I_INVALID_HID; hid_t space, dset_space, dset, dcpl; /* Handles */ hsize_t dims[2] = {4, 4}, maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED}, chunk[2] = {4, 4}; hsize_t size[2], offset[2]; int wdata[4][4], /* Write buffer */ - fillval, i, j; - int rdata[4][4]; /* Read buffer */ - + fillval, i, j; + int rdata[4][4]; /* Read buffer */ + /* Setup */ if ((onion_info.backing_fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0) goto error; @@ -11791,7 +11791,7 @@ gent_onion_dset_extension(void) if ((space = H5Screate_simple(2, dims, maxdims)) < 0) goto error; - /* + /* * Create the dataset creation property list, and set the chunk * size. */ @@ -12028,7 +12028,7 @@ main(void) /* Generate the files for testing Onion VFD */ gent_onion_1d_dset(); - gent_onion_create_delete_objects(); + gent_onion_create_delete_objects(); gent_onion_dset_extension(); return 0; |