Remove unnecessary parameters for cache_bin_postincrement.

This commit is contained in:
guangli-dai 2023-08-20 23:28:38 -07:00 committed by Qi Wang
parent 7d9eceaf38
commit fbca96c433
4 changed files with 4 additions and 7 deletions

View file

@ -56,8 +56,7 @@ cache_bin_preincrement(cache_bin_info_t *infos, szind_t ninfos, void *alloc,
}
void
cache_bin_postincrement(cache_bin_info_t *infos, szind_t ninfos, void *alloc,
size_t *cur_offset) {
cache_bin_postincrement(void *alloc, size_t *cur_offset) {
*(uintptr_t *)((byte_t *)alloc + *cur_offset) =
cache_bin_trailing_junk;
*cur_offset += sizeof(void *);