提交 4da289e1 编写于 作者: R Rich Felker

fix return types for aio_read and aio_write again

previous fix was backwards and propagated the wrong type rather than
the right one...
上级 13cd9695
...@@ -41,8 +41,8 @@ struct aiocb { ...@@ -41,8 +41,8 @@ struct aiocb {
#define LIO_WAIT 0 #define LIO_WAIT 0
#define LIO_NOWAIT 1 #define LIO_NOWAIT 1
ssize_t aio_read(struct aiocb *); int aio_read(struct aiocb *);
ssize_t aio_write(struct aiocb *); int aio_write(struct aiocb *);
int aio_error(const struct aiocb *); int aio_error(const struct aiocb *);
ssize_t aio_return(struct aiocb *); ssize_t aio_return(struct aiocb *);
int aio_cancel(int, struct aiocb *); int aio_cancel(int, struct aiocb *);
......
...@@ -91,13 +91,13 @@ static int new_req(struct aiocb *cb) ...@@ -91,13 +91,13 @@ static int new_req(struct aiocb *cb)
return ret; return ret;
} }
ssize_t aio_read(struct aiocb *cb) int aio_read(struct aiocb *cb)
{ {
cb->aio_lio_opcode = LIO_READ; cb->aio_lio_opcode = LIO_READ;
return new_req(cb); return new_req(cb);
} }
ssize_t aio_write(struct aiocb *cb) int aio_write(struct aiocb *cb)
{ {
cb->aio_lio_opcode = LIO_WRITE; cb->aio_lio_opcode = LIO_WRITE;
return new_req(cb); return new_req(cb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册