mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename kfree to kmm_free for consistency with other naming conventions
This commit is contained in:
@@ -55,10 +55,10 @@
|
||||
#if (defined(CONFIG_BUILD_PROTECTED) && defined(__KERNEL__)) || \
|
||||
defined(CONFIG_BUILD_KERNEL)
|
||||
# include <nuttx/kmalloc.h>
|
||||
# define lib_malloc(s) kmalloc(s)
|
||||
# define lib_zalloc(s) kzalloc(s)
|
||||
# define lib_malloc(s) kmm_malloc(s)
|
||||
# define lib_zalloc(s) kmm_zalloc(s)
|
||||
# define lib_realloc(p,s) kmm_realloc(p,s)
|
||||
# define lib_free(p) kfree(p)
|
||||
# define lib_free(p) kmm_free(p)
|
||||
#else
|
||||
# include <cstdlib>
|
||||
# define lib_malloc(s) malloc(s)
|
||||
|
||||
Reference in New Issue
Block a user