diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 21:52:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 21:52:30 (GMT) |
commit | 8253ab9ebf6a082dc07eb931f27b169d6a45d577 (patch) | |
tree | 47630856491e54f5d28e1608ffa5e2f976dc9c95 /src/H5FDonion_index.c | |
parent | 920869796031ed4ee9c1fbea8aaccda3592a88b3 (diff) | |
download | hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.zip hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.gz hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.bz2 |
Convert hbool_t --> bool in src (#3496)
* hbool_t --> bool in src
* Does not remove TRUE/FALSE
* Public header files are unchanged
* Public API calls are unchanged
* TRUE/FALSE --> true/false in src
* Add deprecation notice for hbool_t
Diffstat (limited to 'src/H5FDonion_index.c')
-rw-r--r-- | src/H5FDonion_index.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5FDonion_index.c b/src/H5FDonion_index.c index fae87ca..4e7f8a3 100644 --- a/src/H5FDonion_index.c +++ b/src/H5FDonion_index.c @@ -176,28 +176,28 @@ done: * + Sorted by increasing logical address (no duplicates) * + Logical addresses are multiples of page size. * - * Return: TRUE/FALSE + * Return: true/false *----------------------------------------------------------------------------- */ -hbool_t +bool H5FD__onion_archival_index_is_valid(const H5FD_onion_archival_index_t *aix) { - hbool_t ret_value = TRUE; + bool ret_value = true; FUNC_ENTER_PACKAGE_NOERR assert(aix); if (H5FD_ONION_ARCHIVAL_INDEX_VERSION_CURR != aix->version) - HGOTO_DONE(FALSE); + HGOTO_DONE(false); if (NULL == aix->list) - HGOTO_DONE(FALSE); + HGOTO_DONE(false); /* Ensure list is sorted on logical_page field */ if (aix->n_entries > 1) for (uint64_t i = 1; i < aix->n_entries - 1; i++) if (aix->list[i + 1].logical_page <= aix->list[i].logical_page) - HGOTO_DONE(FALSE); + HGOTO_DONE(false); done: FUNC_LEAVE_NOAPI(ret_value) |