use updated kalloc macros (#1051)

* use updated kalloc macros

* review

* get the reference

* store the reference

* last one
This commit is contained in:
Chris Seymour
2023-04-21 10:45:53 -04:00
committed by GitHub
parent c3d461e22a
commit e68d868806
3 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ void km_stat_print(const void *km);
#define KEXPAND(km, a, m) do { \
(m) = (m) >= 4? (m) + ((m)>>1) : 16; \
KREALLOC((km), (a), (m)); \
a = krealloc((km), (a), (m) * sizeof(a)) ; \
} while (0)
#ifndef klib_unused
@@ -56,7 +56,7 @@ void km_stat_print(const void *km);
} kmp_##name##_t; \
SCOPE kmp_##name##_t *kmp_init_##name(void *km) { \
kmp_##name##_t *mp; \
KCALLOC(km, mp, 1); \
mp = Kcalloc(km, kmp_##name##_t, 1); \
mp->km = km; \
return mp; \
} \