diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-03-09 20:07:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 20:07:54 (GMT) |
commit | d5ddf61803f30e87bdfa629339fabf6fe1eb4a3c (patch) | |
tree | a706f48c739c46d1f451c6e1346457c19838bc7a /test | |
parent | 16f482de8f6f9a7447bf1d73702377b994b58aff (diff) | |
download | hdf5-d5ddf61803f30e87bdfa629339fabf6fe1eb4a3c.zip hdf5-d5ddf61803f30e87bdfa629339fabf6fe1eb4a3c.tar.gz hdf5-d5ddf61803f30e87bdfa629339fabf6fe1eb4a3c.tar.bz2 |
Minor tweaks from VFD SWMR normalization (#1474)
Diffstat (limited to 'test')
-rw-r--r-- | test/swmr_common.c | 5 | ||||
-rw-r--r-- | test/swmr_sparse_reader.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/swmr_common.c b/test/swmr_common.c index 2201427..b359bc6 100644 --- a/test/swmr_common.c +++ b/test/swmr_common.c @@ -202,13 +202,12 @@ generate_symbols(void) unsigned u, v; /* Local index variables */ for (u = 0; u < NLEVELS; u++) { - symbol_info[u] = (symbol_info_t *)HDmalloc(symbol_count[u] * sizeof(symbol_info_t)); + symbol_info[u] = HDmalloc(symbol_count[u] * sizeof(symbol_info_t)); for (v = 0; v < symbol_count[u]; v++) { char name_buf[64]; generate_name(name_buf, u, v); - symbol_info[u][v].name = (char *)HDmalloc(HDstrlen(name_buf) + 1); - HDstrcpy(symbol_info[u][v].name, name_buf); + symbol_info[u][v].name = HDstrdup(name_buf); symbol_info[u][v].dsid = -1; symbol_info[u][v].nrecords = 0; } /* end for */ diff --git a/test/swmr_sparse_reader.c b/test/swmr_sparse_reader.c index 15dcb67..8f1c781 100644 --- a/test/swmr_sparse_reader.c +++ b/test/swmr_sparse_reader.c @@ -117,7 +117,7 @@ check_dataset(hid_t fid, unsigned verbose, const symbol_info_t *symbol, symbol_t (uintmax_t)start[0], (uintmax_t)start[1]); /* Read record from dataset */ - record->rec_id = (uint64_t)ULLONG_MAX; + record->rec_id = UINT64_MAX; if (H5Dread(dsid, symbol_tid, rec_sid, file_sid, H5P_DEFAULT, record) < 0) return -1; |