diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-04-26 20:11:46 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-04-26 20:11:46 +0000 |
commit | 87883c4b5394ad568022ecc7243a648d89b62c41 (patch) | |
tree | a8c5f6d3d1d3666cc9be47d7941cff8ce9178a68 /nuttx/sched | |
parent | 3e1b2867abde43dc1e2a55ccda473f4e5b12702b (diff) | |
download | px4-firmware-87883c4b5394ad568022ecc7243a648d89b62c41.tar.gz px4-firmware-87883c4b5394ad568022ecc7243a648d89b62c41.tar.bz2 px4-firmware-87883c4b5394ad568022ecc7243a648d89b62c41.zip |
Configuration for Sparkfun UBW32 board
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4660 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/prctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/sched/prctl.c b/nuttx/sched/prctl.c index c4ed373b9..bc55992b4 100644 --- a/nuttx/sched/prctl.c +++ b/nuttx/sched/prctl.c @@ -95,7 +95,7 @@ int prctl(int option, ...) FAR _TCB *tcb; /* Get the TCB associated with the PID (handling the special case of - * pid==0 meaning "this thread" + * pid==0 meaning "this thread") */ if (!pid) @@ -107,7 +107,7 @@ int prctl(int option, ...) tcb = sched_gettcb(pid); } - /* An invalid pid be indicated by a NULL TCB returned from + /* An invalid pid will be indicated by a NULL TCB returned from * sched_gettcb() */ @@ -118,6 +118,8 @@ int prctl(int option, ...) goto errout; } + /* A pointer to the task name storage must also be provided */ + if (!name) { sdbg("No name provide\n"); @@ -125,7 +127,7 @@ int prctl(int option, ...) goto errout; } - /* Now get or set the name */ + /* Now get or set the task name */ if (option == PR_SET_NAME) { |