Bug 11494 - aio_suspend() check passes wrong arguments
aio_suspend() check passes wrong arguments
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build
All All
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2015-09-03 22:33 UTC by Timur Bakeyev
Modified: 2015-09-04 10:24 UTC (History)
1 user (show)

See Also:

Fix, note 'a' instead of &a (1.08 KB, patch)
2015-09-03 22:33 UTC, Timur Bakeyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur Bakeyev 2015-09-03 22:33:05 UTC
Created attachment 11408 [details]
Fix, note 'a' instead of &a

After many iterations aio_suspend() check is still passing wrong paramenters.

t.c:4:76: warning: incompatible pointer types passing 'const struct aiocb *const (*)[1]' to parameter of type 'const struct aiocb *const *'
    const struct aiocb * const a[1]; struct timespec t; return aio_suspend(&a, 1, &t);
/usr/include/aio.h:126:43: note: passing argument to parameter here
int     aio_suspend(const struct aiocb * const[], int, const struct timespec *);