summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_remove_reader.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-06-18 13:07:35 (GMT)
committerGitHub <noreply@github.com>2021-06-18 13:07:35 (GMT)
commit79c2a900d3d02fd43991ebfabcce651fae8ff748 (patch)
tree6d344f8272473a0139129b7c2d315673f1dd9945 /test/vfd_swmr_remove_reader.c
parenta00ad2b657b7918d4b11edee893f6701cf50e351 (diff)
downloadhdf5-79c2a900d3d02fd43991ebfabcce651fae8ff748.zip
hdf5-79c2a900d3d02fd43991ebfabcce651fae8ff748.tar.gz
hdf5-79c2a900d3d02fd43991ebfabcce651fae8ff748.tar.bz2
VFD SWMR: Minor fixes (#771)
* Fixes missing C99 format specifiers in page_buffer test * Warning and other misc fixes in VFD SWMR accept. tests * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/vfd_swmr_remove_reader.c')
-rw-r--r--test/vfd_swmr_remove_reader.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/vfd_swmr_remove_reader.c b/test/vfd_swmr_remove_reader.c
index d64dbaa..a54404f 100644
--- a/test/vfd_swmr_remove_reader.c
+++ b/test/vfd_swmr_remove_reader.c
@@ -36,7 +36,7 @@
/* Local Variables */
/*******************/
-static hid_t symbol_tid = -1;
+static hid_t symbol_tid = H5I_INVALID_HID;
/********************/
/* Local Prototypes */
@@ -78,8 +78,8 @@ static void usage(void);
static int
check_dataset(hid_t fid, hid_t dapl, unsigned verbose, const char *sym_name, symbol_t *record, hid_t rec_sid)
{
- hid_t dsid; /* Dataset ID */
- hid_t file_sid; /* Dataset's space ID */
+ hid_t dsid = H5I_INVALID_HID; /* Dataset ID */
+ hid_t file_sid = H5I_INVALID_HID; /* Dataset's space ID */
hssize_t snpoints; /* Number of elements in dataset */
hsize_t start[2] = {0, 0}, count[2] = {1, 1}; /* Hyperslab selection values */
@@ -215,13 +215,13 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
time_t curr_time; /* Current time */
symbol_info_t ** sym_com = NULL; /* Pointers to array of common dataset IDs */
symbol_info_t ** sym_rand = NULL; /* Pointers to array of random dataset IDs */
- hid_t dapl;
- hid_t mem_sid; /* Memory dataspace ID */
- hid_t fid; /* SWMR test file ID */
- hid_t fapl; /* File access property list */
- symbol_t record; /* The record to add to the dataset */
- unsigned v; /* Local index variable */
- H5F_vfd_swmr_config_t *config = NULL; /* Configuration for VFD SWMR */
+ hid_t dapl = H5I_INVALID_HID;
+ hid_t mem_sid = H5I_INVALID_HID; /* Memory dataspace ID */
+ hid_t fid = H5I_INVALID_HID; /* SWMR test file ID */
+ hid_t fapl = H5I_INVALID_HID; /* File access property list */
+ symbol_t record; /* The record to add to the dataset */
+ unsigned v; /* Local index variable */
+ H5F_vfd_swmr_config_t *config = NULL; /* Configuration for VFD SWMR */
HDassert(filename);
HDassert(nseconds != 0);