Skip to content

Commit

Permalink
tools/testing/selftests/epoll/test_epoll.c: fix build
Browse files Browse the repository at this point in the history
Latest Linus head run of "make selftests" in the tools directory failed
with references to undefined variables.  Reference was to
'write_thread_data' which is the name of a struct that is being used, not
the variable itself.  Change reference so it points to the variable.

Signed-off-by: Daniel Hazelton <[email protected]>
Cc: "Paton J. Lewis" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dshadowwolf authored and torvalds committed Oct 25, 2012
1 parent 59ce876 commit fc314d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/epoll/test_epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ void *write_thread_function(void *function_data)
int index;
struct write_thread_data *thread_data =
(struct write_thread_data *)function_data;
while (!write_thread_data->stop)
while (!thread_data->stop)
for (index = 0;
!thread_data->stop && (index < thread_data->n_fds);
++index)
if ((write(thread_data->fds[index], &data, 1) < 1) &&
(errno != EAGAIN) &&
(errno != EWOULDBLOCK)) {
write_thread_data->status = errno;
thread_data->status = errno;
return;
}
}
Expand Down

0 comments on commit fc314d0

Please sign in to comment.