diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 16:59:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 16:59:06 -0600 |
commit | 03bee97af3131ec0fa3d3d56be10296c197634bd (patch) | |
tree | b5021e99361f1f4b582e4db35b8911a701a9fe9c /nuttx/drivers/timer.c | |
parent | 25cc0eca88a732ee368f342af291df37f36016fe (diff) | |
download | nuttx-03bee97af3131ec0fa3d3d56be10296c197634bd.tar.gz nuttx-03bee97af3131ec0fa3d3d56be10296c197634bd.tar.bz2 nuttx-03bee97af3131ec0fa3d3d56be10296c197634bd.zip |
nuttx/drivers: Remove explicity references to errno. That is a problem from within the kernel for certain configurations
Diffstat (limited to 'nuttx/drivers/timer.c')
-rw-r--r-- | nuttx/drivers/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/timer.c b/nuttx/drivers/timer.c index dde059ae0..0fb4c5f8e 100644 --- a/nuttx/drivers/timer.c +++ b/nuttx/drivers/timer.c @@ -148,7 +148,7 @@ static int timer_open(FAR struct file *filep) ret = 1; //sem_wait(&upper->exclsem); if (ret < 0) { - ret = -errno; + ret = -get_errno(); goto errout; } @@ -199,7 +199,7 @@ static int timer_close(FAR struct file *filep) ret = 1; //sem_wait(&upper->exclsem); if (ret < 0) { - ret = -errno; + ret = -get_errno(); goto errout; } |