Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Linux-Kernel
libevl
Commits
23c4c56e
Commit
23c4c56e
authored
Sep 18, 2021
by
Philippe Gerum
Browse files
tests: poll-multiple: fix trashing of iteration variable
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
ea8c7d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/poll-multiple.c
View file @
23c4c56e
...
...
@@ -88,8 +88,8 @@ static void *flags_feeder(void *arg)
int
main
(
int
argc
,
char
*
argv
[])
{
int
tfd
,
ret
,
n
,
m
,
pollfd
,
tmfd
,
bits
,
nr
;
struct
evl_poll_event
pollset
[
NR_FEEDERS
];
int
tfd
,
ret
,
n
,
m
,
pollfd
,
tmfd
,
bits
;
struct
itimerspec
value
,
ovalue
;
pthread_t
feeders
[
NR_FEEDERS
];
struct
sched_param
param
;
...
...
@@ -137,8 +137,8 @@ int main(int argc, char *argv[])
__Tcall_assert
(
ret
,
evl_unlock_mutex
(
&
lock
));
for
(
n
=
0
;
n
<
FEED_COUNT
;
n
++
)
{
__Tcall_assert
(
r
et
,
evl_poll
(
pollfd
,
pollset
,
NR_FEEDERS
));
for
(
m
=
0
;
m
<
r
et
;
m
++
)
{
__Tcall_assert
(
n
r
,
evl_poll
(
pollfd
,
pollset
,
NR_FEEDERS
));
for
(
m
=
0
;
m
<
n
r
;
m
++
)
{
if
(
pollset
[
m
].
fd
==
tmfd
)
{
__Tcall_errno_assert
(
ret
,
oob_read
(
tmfd
,
&
ticks
,
sizeof
(
ticks
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment