fix idiotic const-correctness error in lio_listio
authorRich Felker <dalias@aerifal.cx>
Fri, 16 Sep 2011 16:08:20 +0000 (12:08 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 16 Sep 2011 16:08:20 +0000 (12:08 -0400)
i blame this one on posix for using hideous const-qualified double
pointers which are unusable without hideous casts.

src/aio/lio_listio.c

index 8865029..8c851ca 100644 (file)
@@ -30,7 +30,7 @@ static int lio_wait(struct lio_state *st)
                        }
                        return 0;
                }
-               if (aio_suspend(cbs, cnt, 0))
+               if (aio_suspend((void *)cbs, cnt, 0))
                        return -1;
        }
 }