Bug 11494 - aio_suspend() check passes wrong arguments
Summary: aio_suspend() check passes wrong arguments
Status: RESOLVED FIXED
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 22:33 UTC by Timur Bakeyev
Modified: 2018-03-26 12:03 UTC (History)
1 user (show)

See Also:


Attachments
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 *'
      [-Wincompatible-pointer-types]
    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
5327c6004997e6b3cf235a1a292cc8f2ea1ff698