summaryrefslogtreecommitdiffstats
path: root/test/swmr_common.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2012-10-18 21:14:35 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2012-10-18 21:14:35 (GMT)
commitb624395cca176d28a89ad91b84fa19d5e7d36c55 (patch)
tree4c5d56fcf37206229b96848295e6e7f767dd8a8e /test/swmr_common.c
parentddced9ab1d4f0fee92e6e4d1a244c6a85303b373 (diff)
downloadhdf5-b624395cca176d28a89ad91b84fa19d5e7d36c55.zip
hdf5-b624395cca176d28a89ad91b84fa19d5e7d36c55.tar.gz
hdf5-b624395cca176d28a89ad91b84fa19d5e7d36c55.tar.bz2
[svn-r22922] Purpose:
Moved the file open/close back inside the loop in the SWMR reader code. Without the open/close, the cache never refreshes so we always see the initial amount. Made a couple of other minor changes to the SWMR code. Tested on: jam
Diffstat (limited to 'test/swmr_common.c')
-rw-r--r--test/swmr_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/swmr_common.c b/test/swmr_common.c
index b921d15..cdac4c9 100644
--- a/test/swmr_common.c
+++ b/test/swmr_common.c
@@ -101,7 +101,7 @@ choose_dataset(void)
/* Determine the offset of the level */
offset = random() % symbol_count[level];
- return(&symbol_info[level][offset]);
+ return &symbol_info[level][offset];
} /* end choose_dataset() */
@@ -142,7 +142,7 @@ create_symbol_datatype(void)
if(H5Tclose(opaq_type_id) < 0)
return -1;
- return(sym_type_id);
+ return sym_type_id;
} /* end create_symbol_datatype() */