We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1836a3 commit dddfa05Copy full SHA for dddfa05
arch/um/os-Linux/sigio.c
@@ -3,7 +3,6 @@
3
* Copyright (C) 2002 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)
4
*/
5
6
-#include <linux/minmax.h>
7
#include <unistd.h>
8
#include <errno.h>
9
#include <fcntl.h>
@@ -51,7 +50,7 @@ static struct pollfds all_sigio_fds;
51
50
52
static int write_sigio_thread(void *unused)
53
{
54
- struct pollfds *fds;
+ struct pollfds *fds, tmp;
55
struct pollfd *p;
56
int i, n, respond_fd;
57
char c;
@@ -78,7 +77,9 @@ static int write_sigio_thread(void *unused)
78
77
"write_sigio_thread : "
79
"read on socket failed, "
80
"err = %d\n", errno);
81
- swap(current_poll, next_poll);
+ tmp = current_poll;
+ current_poll = next_poll;
82
+ next_poll = tmp;
83
respond_fd = sigio_private[1];
84
}
85
else {
0 commit comments