diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-29 19:33:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 19:33:46 (GMT) |
commit | 39e6bf48c92dda00057e2e19cdeed93f5a07b3c8 (patch) | |
tree | 7596e876fd008f38830d04591d49a0328208b0d1 /test/gheap.c | |
parent | fd933f30b1f8cd487ad790ac0b054bb779280a62 (diff) | |
download | hdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.zip hdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.tar.gz hdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.tar.bz2 |
Remove HD from HDmem* calls (#3211)
Diffstat (limited to 'test/gheap.c')
-rw-r--r-- | test/gheap.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/gheap.c b/test/gheap.c index ce38dc3..714ba27 100644 --- a/test/gheap.c +++ b/test/gheap.c @@ -95,7 +95,7 @@ test_1(hid_t fapl) */ for (u = 0; u < GHEAP_TEST_NOBJS; u++) { size = u + 1; - HDmemset(out, (int)('A' + u % 26), size); + memset(out, (int)('A' + u % 26), size); H5Eclear2(H5E_DEFAULT); status = H5HG_insert(f, size, out, obj + u); if (status < 0) { @@ -115,14 +115,14 @@ test_1(hid_t fapl) */ for (u = 0; u < GHEAP_TEST_NOBJS; u++) { size = u + 1; - HDmemset(out, (int)('A' + u % 26), size); + memset(out, (int)('A' + u % 26), size); H5Eclear2(H5E_DEFAULT); if (NULL == H5HG_read(f, obj + u, in, NULL)) { H5_FAILED(); HDputs(" Unable to read object"); nerrors++; } - else if (HDmemcmp(in, out, size) != 0) { + else if (memcmp(in, out, size) != 0) { H5_FAILED(); HDputs(" Value read doesn't match value written"); nerrors++; @@ -198,7 +198,7 @@ test_2(hid_t fapl) */ for (u = 0; u < GHEAP_TEST_NOBJS; u++) { size = GHEAP_TEST_NOBJS - u; - HDmemset(out, (int)('A' + u % 26), size); + memset(out, (int)('A' + u % 26), size); H5Eclear2(H5E_DEFAULT); if (H5HG_insert(f, size, out, obj + u) < 0) { H5_FAILED(); @@ -212,14 +212,14 @@ test_2(hid_t fapl) */ for (u = 0; u < GHEAP_TEST_NOBJS; u++) { size = GHEAP_TEST_NOBJS - u; - HDmemset(out, (int)('A' + u % 26), size); + memset(out, (int)('A' + u % 26), size); H5Eclear2(H5E_DEFAULT); if (NULL == H5HG_read(f, obj + u, in, NULL)) { H5_FAILED(); HDputs(" Unable to read object"); nerrors++; } - else if (HDmemcmp(in, out, size) != 0) { + else if (memcmp(in, out, size) != 0) { H5_FAILED(); HDputs(" Value read doesn't match value written"); nerrors++; @@ -293,7 +293,7 @@ test_3(hid_t fapl) /* Create some stuff */ for (u = 0; u < GHEAP_TEST_NOBJS; u++) { size = u % 30 + 100; - HDmemset(out, (int)('A' + u % 26), size); + memset(out, (int)('A' + u % 26), size); H5Eclear2(H5E_DEFAULT); status = H5HG_insert(f, size, out, obj + u); if (status < 0) { @@ -381,7 +381,7 @@ test_4(hid_t fapl) for (u = 0; u < GHEAP_TEST_NOBJS; u++) { /* Insert */ size = u % 30 + 100; - HDmemset(out, (int)('A' + u % 26), size); + memset(out, (int)('A' + u % 26), size); H5Eclear2(H5E_DEFAULT); status = H5HG_insert(f, size, out, obj + u); if (status < 0) { @@ -402,7 +402,7 @@ test_4(hid_t fapl) HDputs(" Unable to remove object"); nerrors++; } - HDmemset(obj + u - 1, 0, sizeof *obj); + memset(obj + u - 1, 0, sizeof *obj); } } |