summaryrefslogtreecommitdiff
path: root/nuttx/sched/mq_open.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-03 20:41:49 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-03 20:41:49 +0000
commit758d4800642060f50cdf26f7063c9825ea635d15 (patch)
treee689f42a002a2fd57548de0a3eb2aab98fe8f0f0 /nuttx/sched/mq_open.c
parentc5ec7c478098273586b7a5716e30dc82c1e6aba5 (diff)
downloadpx4-nuttx-758d4800642060f50cdf26f7063c9825ea635d15.tar.gz
px4-nuttx-758d4800642060f50cdf26f7063c9825ea635d15.tar.bz2
px4-nuttx-758d4800642060f50cdf26f7063c9825ea635d15.zip
Move memory manager into user space
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3460 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/mq_open.c')
-rw-r--r--nuttx/sched/mq_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/mq_open.c b/nuttx/sched/mq_open.c
index 9e3a3e77c..de9388195 100644
--- a/nuttx/sched/mq_open.c
+++ b/nuttx/sched/mq_open.c
@@ -1,7 +1,7 @@
/****************************************************************************
* sched/mq_open.c
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -157,7 +157,7 @@ mqd_t mq_open(const char *mq_name, int oflags, ...)
* of the message queue name+1.
*/
- msgq = (FAR msgq_t*)kzmalloc(SIZEOF_MQ_HEADER + namelen + 1);
+ msgq = (FAR msgq_t*)kzalloc(SIZEOF_MQ_HEADER + namelen + 1);
if (msgq)
{
/* Create a message queue descriptor for the TCB */