summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
authorQuincey Koziol <quincey@koziol.cc>2023-04-13 18:25:50 (GMT)
committerGitHub <noreply@github.com>2023-04-13 18:25:50 (GMT)
commit6e90b1fdb6f69a09089905d7a3346ce944a779f3 (patch)
tree5641a0e2729c8afc7d043ee0fef3244cbf9ecde2 /src/H5C.c
parent2ecfba97ddb728aaf977c75972efe6bd451673a4 (diff)
downloadhdf5-6e90b1fdb6f69a09089905d7a3346ce944a779f3.zip
hdf5-6e90b1fdb6f69a09089905d7a3346ce944a779f3.tar.gz
hdf5-6e90b1fdb6f69a09089905d7a3346ce944a779f3.tar.bz2
Refactor H5C_entry_in_skip_list (#2719)
* Refactor H5C__entry_in_skip_list to package scope
Diffstat (limited to 'src/H5C.c')
-rw-r--r--src/H5C.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/H5C.c b/src/H5C.c
index f6bc1ff..2bce704 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -7050,7 +7050,7 @@ done:
/*-------------------------------------------------------------------------
*
- * Function: H5C_entry_in_skip_list
+ * Function: H5C__entry_in_skip_list
*
* Purpose: Debugging function that scans skip list to see if it
* is in present. We need this, as it is possible for
@@ -7065,11 +7065,15 @@ done:
*/
#ifdef H5C_DO_SLIST_SANITY_CHECKS
hbool_t
-H5C_entry_in_skip_list(H5C_t *cache_ptr, H5C_cache_entry_t *target_ptr)
+H5C__entry_in_skip_list(H5C_t *cache_ptr, H5C_cache_entry_t *target_ptr)
{
H5SL_node_t *node_ptr;
hbool_t in_slist;
+ hbool_t ret_value;
+ FUNC_ENTER_PACKAGE
+
+ /* Assertions */
HDassert(cache_ptr);
HDassert(cache_ptr->magic == H5C__H5C_T_MAGIC);
HDassert(cache_ptr->slist_ptr);
@@ -7092,8 +7096,12 @@ H5C_entry_in_skip_list(H5C_t *cache_ptr, H5C_cache_entry_t *target_ptr)
node_ptr = H5SL_next(node_ptr);
}
- return (in_slist);
-} /* H5C_entry_in_skip_list() */
+ /* Set return value */
+ ret_value = in_slist;
+
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* H5C__entry_in_skip_list() */
#endif /* H5C_DO_SLIST_SANITY_CHECKS */
/*-------------------------------------------------------------------------