Bug 11494 - aio_suspend() check passes wrong arguments
Summary: aio_suspend() check passes wrong arguments
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.2.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2015-09-03 22:33 UTC by Timur Bakeyev
Modified: 2018-03-26 12:03 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 *);
Comment 1 Stefan Metzmacher 2018-03-26 12:03:05 UTC
The related code was removed for 4.4 by commit