summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-13 21:21:53 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-13 21:21:53 -0400
commit4da289e1b3a0d09048d9be1dfc3a7280531a1e48 (patch)
tree04b47aced3ed7d87111f4e49cedf4177ad96cd1e
parent13cd969552409e05c941829f2aabb15e2f4d9a1f (diff)
downloadmusl-4da289e1b3a0d09048d9be1dfc3a7280531a1e48.tar.gz
fix return types for aio_read and aio_write again
previous fix was backwards and propagated the wrong type rather than the right one...
-rw-r--r--include/aio.h4
-rw-r--r--src/aio/aio_readwrite.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/aio.h b/include/aio.h
index cf94964f..ce7b4260 100644
--- a/include/aio.h
+++ b/include/aio.h
@@ -41,8 +41,8 @@ struct aiocb {
#define LIO_WAIT 0
#define LIO_NOWAIT 1
-ssize_t aio_read(struct aiocb *);
-ssize_t aio_write(struct aiocb *);
+int aio_read(struct aiocb *);
+int aio_write(struct aiocb *);
int aio_error(const struct aiocb *);
ssize_t aio_return(struct aiocb *);
int aio_cancel(int, struct aiocb *);
diff --git a/src/aio/aio_readwrite.c b/src/aio/aio_readwrite.c
index 27168f25..adb5688a 100644
--- a/src/aio/aio_readwrite.c
+++ b/src/aio/aio_readwrite.c
@@ -91,13 +91,13 @@ static int new_req(struct aiocb *cb)
return ret;
}
-ssize_t aio_read(struct aiocb *cb)
+int aio_read(struct aiocb *cb)
{
cb->aio_lio_opcode = LIO_READ;
return new_req(cb);
}
-ssize_t aio_write(struct aiocb *cb)
+int aio_write(struct aiocb *cb)
{
cb->aio_lio_opcode = LIO_WRITE;
return new_req(cb);