From d42db65e892602db57a314cad83414c89bd74aa1 Mon Sep 17 00:00:00 2001 From: Peter Cao Date: Wed, 30 Jan 2013 15:53:15 -0500 Subject: [svn-r23206] minor fixes for number of attributes to be created. --- tools/misc/h5perf_gentest.c | 65 ++++++++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 27 deletions(-) diff --git a/tools/misc/h5perf_gentest.c b/tools/misc/h5perf_gentest.c index ea8a2c8..b5b8059 100755 --- a/tools/misc/h5perf_gentest.c +++ b/tools/misc/h5perf_gentest.c @@ -38,8 +38,8 @@ typedef struct { char *city; } zipcode_t; -void add_attrs(hid_t oid, int idx); -void add_attr(hid_t oid, const char *name, hid_t tid, hid_t sid, void *buf) ; +int add_attrs(hid_t oid, int idx); +int add_attr(hid_t oid, const char *name, hid_t tid, hid_t sid, void *buf) ; int main (int argc, char *argv[]) { @@ -263,10 +263,10 @@ herr_t create_perf_test_file(const char *fname, int ngrps, int ndsets, int nattr /* add attributes*/ gid1 = H5Gcreate (fid, "attributes", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); - nattrs = nattrs/6; if (nattrs<1) nattrs = 1; - for (i=0; i