summaryrefslogtreecommitdiffstats
path: root/src/H5Cprefetched.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /src/H5Cprefetched.c
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'src/H5Cprefetched.c')
-rw-r--r--src/H5Cprefetched.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5Cprefetched.c b/src/H5Cprefetched.c
index 5dec6ba..cca6641 100644
--- a/src/H5Cprefetched.c
+++ b/src/H5Cprefetched.c
@@ -217,8 +217,8 @@ H5C__prefetched_entry_notify(H5C_notify_action_t action, void *_thing)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(entry_ptr);
- HDassert(entry_ptr->prefetched);
+ assert(entry_ptr);
+ assert(entry_ptr->prefetched);
switch (action) {
case H5C_NOTIFY_ACTION_AFTER_INSERT:
@@ -238,10 +238,10 @@ H5C__prefetched_entry_notify(H5C_notify_action_t action, void *_thing)
H5C_cache_entry_t *parent_ptr;
/* Sanity checks */
- HDassert(entry_ptr->flush_dep_parent);
+ assert(entry_ptr->flush_dep_parent);
parent_ptr = entry_ptr->flush_dep_parent[u];
- HDassert(parent_ptr);
- HDassert(parent_ptr->flush_dep_nchildren > 0);
+ assert(parent_ptr);
+ assert(parent_ptr->flush_dep_nchildren > 0);
/* Destroy flush dependency with flush dependency parent */
if (H5C_destroy_flush_dependency(parent_ptr, entry_ptr) < 0)
@@ -254,7 +254,7 @@ H5C__prefetched_entry_notify(H5C_notify_action_t action, void *_thing)
* field to reflect the destruction of the flush
* dependency relationship.
*/
- HDassert(parent_ptr->fd_child_count > 0);
+ assert(parent_ptr->fd_child_count > 0);
(parent_ptr->fd_child_count)--;
} /* end if */
} /* end for */
@@ -293,16 +293,16 @@ H5C__prefetched_entry_free_icr(void *_thing)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(entry_ptr);
- HDassert(entry_ptr->prefetched);
+ assert(entry_ptr);
+ assert(entry_ptr->prefetched);
/* Release array for flush dependency parent addresses */
if (entry_ptr->fd_parent_addrs != NULL) {
- HDassert(entry_ptr->fd_parent_count > 0);
+ assert(entry_ptr->fd_parent_count > 0);
entry_ptr->fd_parent_addrs = (haddr_t *)H5MM_xfree((void *)entry_ptr->fd_parent_addrs);
} /* end if */
else
- HDassert(entry_ptr->fd_parent_count == 0);
+ assert(entry_ptr->fd_parent_count == 0);
if (entry_ptr->image_ptr != NULL)
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "prefetched entry image buffer still attached?")