aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-03-31 15:13:12 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-03-31 15:13:12 +0000
commitb277d5c19326b572c19c77ceb13ad73dbe213c23 (patch)
tree98e0f474d93010b7655ad4b7528df65b3874537f /nuttx/sched
parent8f17baae37707f163ce7bbe7772d060efe11a858 (diff)
downloadpx4-firmware-b277d5c19326b572c19c77ceb13ad73dbe213c23.tar.gz
px4-firmware-b277d5c19326b572c19c77ceb13ad73dbe213c23.tar.bz2
px4-firmware-b277d5c19326b572c19c77ceb13ad73dbe213c23.zip
Fix read() return value for the case of permissions problem
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4545 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/sched_setupidlefiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/sched_setupidlefiles.c b/nuttx/sched/sched_setupidlefiles.c
index 7b2839685..f2bfb78d2 100644
--- a/nuttx/sched/sched_setupidlefiles.c
+++ b/nuttx/sched/sched_setupidlefiles.c
@@ -123,7 +123,7 @@ int sched_setupidlefiles(FAR _TCB *tcb)
* it and got some file descriptor other than 0.
*/
- if (fd >- 0)
+ if (fd > 0)
{
slldbg("Open /dev/console fd: %d\n", fd);
(void)close(fd);