stupid typo (caused by rather ugly spelling in POSIX..) in aio
authorRich Felker <dalias@aerifal.cx>
Wed, 28 Sep 2011 15:36:11 +0000 (11:36 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 28 Sep 2011 15:36:11 +0000 (11:36 -0400)
include/aio.h
src/aio/aio_readwrite.c

index ce7b4260ece14448108104df844972bd828d6098..4cc049091553be50e2b2a757457789dc0975dc6a 100644 (file)
@@ -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;
index adb5688a7b0e39f087fcbace55a32de1aa2e32d2..584ccb3d73f083aa428a8e0122dc99c5773db6c6 100644 (file)
@@ -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;