From 7cbe29e7dbb599892f93cd664ffccca780d154dd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 6 Oct 2014 12:28:37 -0600 Subject: [PATCH] Fix compile problems with debug on --- fs/aio/aio_fsync.c | 1 + libc/aio/aio_suspend.c | 2 +- libc/aio/lio_listio.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/aio/aio_fsync.c b/fs/aio/aio_fsync.c index 25573df45c..2c92a7a560 100644 --- a/fs/aio/aio_fsync.c +++ b/fs/aio/aio_fsync.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include diff --git a/libc/aio/aio_suspend.c b/libc/aio/aio_suspend.c index b6a76ead75..89982fc89d 100644 --- a/libc/aio/aio_suspend.c +++ b/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/libc/aio/lio_listio.c b/libc/aio/lio_listio.c index d4741374a5..cc0ef2cba4 100644 --- a/libc/aio/lio_listio.c +++ b/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; }