diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:34:44 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-31 17:34:44 -0600 |
commit | f8d20db23e41f2cb8f1e99f8f4f7965c215c9677 (patch) | |
tree | 45c7a57c201427409d0f4b78c803d6e240f79f43 /nuttx/sched/pthread | |
parent | 306de6c62392400107ea8a9d6e3aa13dd202b742 (diff) | |
download | px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.gz px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.bz2 px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.zip |
Reanem kzalloc to kmm_zalloc for consistency
Diffstat (limited to 'nuttx/sched/pthread')
-rw-r--r-- | nuttx/sched/pthread/pthread_create.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/pthread/pthread_create.c b/nuttx/sched/pthread/pthread_create.c index 036818a53..d777d0cc8 100644 --- a/nuttx/sched/pthread/pthread_create.c +++ b/nuttx/sched/pthread/pthread_create.c @@ -247,7 +247,7 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr, /* Allocate a TCB for the new task. */ - ptcb = (FAR struct pthread_tcb_s *)kzalloc(sizeof(struct pthread_tcb_s)); + ptcb = (FAR struct pthread_tcb_s *)kmm_zalloc(sizeof(struct pthread_tcb_s)); if (!ptcb) { sdbg("ERROR: Failed to allocate TCB\n"); @@ -281,7 +281,7 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr, /* Allocate a detachable structure to support pthread_join logic */ - pjoin = (FAR struct join_s*)kzalloc(sizeof(struct join_s)); + pjoin = (FAR struct join_s*)kmm_zalloc(sizeof(struct join_s)); if (!pjoin) { sdbg("ERROR: Failed to allocate join\n"); |