瀏覽代碼

stupid typo (caused by rather ugly spelling in POSIX..) in aio

Rich Felker 13 年之前
父節點
當前提交
f0a8d60d32
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/aio.h
  2. 1 1
      src/aio/aio_readwrite.c

+ 1 - 1
include/aio.h

@@ -17,7 +17,7 @@ extern "C" {
 #include <bits/alltypes.h>
 
 struct aiocb {
-	int aio_filedes, aio_lio_opcode, aio_reqprio;
+	int aio_fildes, aio_lio_opcode, aio_reqprio;
 	volatile void *aio_buf;
 	size_t aio_nbytes;
 	struct sigevent aio_sigevent;

+ 1 - 1
src/aio/aio_readwrite.c

@@ -23,7 +23,7 @@ static void notify_signal(struct sigevent *sev)
 static void *io_thread(void *p)
 {
 	struct aiocb *cb = p;
-	int fd = cb->aio_filedes;
+	int fd = cb->aio_fildes;
 	void *buf = (void *)cb->aio_buf;
 	size_t len = cb->aio_nbytes;
 	off_t off = cb->aio_offset;