X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Faio%2Flio_listio.c;h=30f7cc05c28f4002e6ab1e94a94dfb662c390070;hb=328810d32524e4928fec50b57e37e1bf330b2e40;hp=8865029adf298f8852f57e49ce4e5345f7b6b2e0;hpb=b4de6f93aed733b8fc8d103e5ced69ebe7d659e6;p=musl diff --git a/src/aio/lio_listio.c b/src/aio/lio_listio.c index 8865029a..30f7cc05 100644 --- a/src/aio/lio_listio.c +++ b/src/aio/lio_listio.c @@ -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; } } @@ -64,7 +64,7 @@ static void *wait_thread(void *p) return 0; } -int lio_listio(int mode, struct aiocb *const cbs[], int cnt, struct sigevent *sev) +int lio_listio(int mode, struct aiocb *restrict const cbs[restrict], int cnt, struct sigevent *restrict sev) { int i, ret; struct lio_state *st=0; @@ -81,7 +81,7 @@ int lio_listio(int mode, struct aiocb *const cbs[], int cnt, struct sigevent *se } st->cnt = cnt; st->sev = sev; - memcpy(st->cbs, cbs, cnt*sizeof *cbs); + memcpy(st->cbs, (void*) cbs, cnt*sizeof *cbs); } for (i=0; i