summaryrefslogtreecommitdiffstats
path: root/test/gen_bad_compound.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/gen_bad_compound.c')
-rw-r--r--test/gen_bad_compound.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/test/gen_bad_compound.c b/test/gen_bad_compound.c
index b864195..e103aa2 100644
--- a/test/gen_bad_compound.c
+++ b/test/gen_bad_compound.c
@@ -1,20 +1,17 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
- * Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
- * the files COPYING and Copyright.html. COPYING can be found at the root *
- * of the source code distribution tree; Copyright.html can be found at the *
- * root level of an installed copy of the electronic HDF5 document set and *
- * is linked from the top-level documents page. It can also be found at *
- * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
- * access to either file, you may request a copy from help@hdfgroup.org. *
+ * the COPYING file, which can be found at the root of the source code *
+ * distribution tree, or in https://www.hdfgroup.org/licenses. *
+ * If you do not have access to either file, you may request a copy from *
+ * help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
- * Programmer: Quincey Koziol <koziol@hdfgroup.org>
+ * Programmer: Quincey Koziol
* April 14, 2011
*
* Purpose: This program is run to generate an HDF5 data file with objects
@@ -28,16 +25,17 @@
#define FILENAME "bad_compound.h5"
-int main()
+int
+main()
{
- hid_t file;
- hid_t cmpd_dt;
- hid_t sid;
- hid_t did;
- hid_t aid;
- hid_t gid;
- hsize_t dim = 1;
- herr_t ret;
+ hid_t file;
+ hid_t cmpd_dt;
+ hid_t sid;
+ hid_t did;
+ hid_t aid;
+ hid_t gid;
+ hsize_t dim = 1;
+ herr_t ret;
/* Create compound datatype, but don't insert fields */
cmpd_dt = H5Tcreate(H5T_COMPOUND, (size_t)8);
@@ -63,7 +61,7 @@ int main()
aid = H5Acreate(gid, "attr", cmpd_dt, sid, H5P_DEFAULT);
assert(aid > 0);
- /* Commit the datatype */
+ /* Commit the datatype */
ret = H5Tcommit(file, "cmpnd", cmpd_dt);
assert(ret >= 0);
@@ -81,6 +79,5 @@ int main()
ret = H5Fclose(file);
assert(ret >= 0);
- return(0);
+ return (0);
}
-