summaryrefslogtreecommitdiff
path: root/src/aio
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-12-04 19:03:42 -0500
committerRich Felker <dalias@aerifal.cx>2012-12-04 19:03:42 -0500
commitb427c822655156f17d17cd00110ff5bc22299a38 (patch)
tree64f06db9694fc691d27667847652daca97f9c8d8 /src/aio
parent7aa73925e705047755221d6e1461a1e4180d26d7 (diff)
downloadmusl-b427c822655156f17d17cd00110ff5bc22299a38.tar.gz
musl-b427c822655156f17d17cd00110ff5bc22299a38.tar.bz2
musl-b427c822655156f17d17cd00110ff5bc22299a38.tar.xz
musl-b427c822655156f17d17cd00110ff5bc22299a38.zip
use alternate argument syntax for restrict with lio_listio
for some reason I have not been able to determine, gcc 3.2 rejects the array notation. this seems to be a gcc bug, but since it's easy to work around, let's do the workaround and avoid gratuitously requiring newer compilers.
Diffstat (limited to 'src/aio')
-rw-r--r--src/aio/lio_listio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aio/lio_listio.c b/src/aio/lio_listio.c
index 53f9f502..532b17ce 100644
--- a/src/aio/lio_listio.c
+++ b/src/aio/lio_listio.c
@@ -67,7 +67,7 @@ static void *wait_thread(void *p)
return 0;
}
-int lio_listio(int mode, struct aiocb *restrict const cbs[restrict], int cnt, struct sigevent *restrict sev)
+int lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, struct sigevent *restrict sev)
{
int i, ret;
struct lio_state *st=0;