summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-06 12:28:37 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-06 12:28:37 -0600
commit773a23249b1887564edfea51d78a7ab1fd3a7cab (patch)
tree94a7359b258df01d4153df19e9da3a7a4a615c04
parent8ac1ba19ccc79c6b12e78b0291ffe791e54eb500 (diff)
downloadnuttx-773a23249b1887564edfea51d78a7ab1fd3a7cab.tar.gz
nuttx-773a23249b1887564edfea51d78a7ab1fd3a7cab.tar.bz2
nuttx-773a23249b1887564edfea51d78a7ab1fd3a7cab.zip
Fix compile problems with debug on
-rw-r--r--nuttx/fs/aio/aio_fsync.c1
-rw-r--r--nuttx/libc/aio/aio_suspend.c2
-rw-r--r--nuttx/libc/aio/lio_listio.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/fs/aio/aio_fsync.c b/nuttx/fs/aio/aio_fsync.c
index 25573df45..2c92a7a56 100644
--- a/nuttx/fs/aio/aio_fsync.c
+++ b/nuttx/fs/aio/aio_fsync.c
@@ -40,6 +40,7 @@
#include <nuttx/config.h>
#include <unistd.h>
+#include <fcntl.h>
#include <aio.h>
#include <assert.h>
#include <errno.h>
diff --git a/nuttx/libc/aio/aio_suspend.c b/nuttx/libc/aio/aio_suspend.c
index b6a76ead7..89982fc89 100644
--- a/nuttx/libc/aio/aio_suspend.c
+++ b/nuttx/libc/aio/aio_suspend.c
@@ -124,7 +124,7 @@ int aio_suspend(FAR const struct aiocb *const list[], int nent,
int ret;
int i;
- DEBUGASSERT(aiocbp);
+ DEBUGASSERT(list);
/* Lock the scheduler so that no I/O events can complete on the worker
* thread until we set our wait set up. Pre-emption will, of course, be
diff --git a/nuttx/libc/aio/lio_listio.c b/nuttx/libc/aio/lio_listio.c
index d4741374a..cc0ef2cba 100644
--- a/nuttx/libc/aio/lio_listio.c
+++ b/nuttx/libc/aio/lio_listio.c
@@ -603,7 +603,7 @@ int lio_listio(int mode, FAR struct aiocb *const list[], int nent,
errcode = get_errno();
fdbg("ERROR: aio_read/write failed: %d\n", errcode);
- DEBUGASSERT(errocode > 0);
+ DEBUGASSERT(errcode > 0);
aiocbp->aio_result = -errcode;
ret = ERROR;
}