… | … | ||
---|---|---|---|
40 | 40 | ||
41 | static void | 41 | static void |
42 | poll_modify (EV_P_ int fd, int oev, int nev) | 42 | poll_modify (EV_P_ int fd, int oev, int nev) |
43 | { | 43 | { |
44 | int idx; | 44 | int idx; |
45 | |||
46 | if (oev == nev) | ||
47 | return; | ||
48 | |||
45 | array_needsize (pollidxs, pollidxmax, fd + 1, pollidx_init); | 49 | array_needsize (pollidxs, pollidxmax, fd + 1, pollidx_init); |
46 | 50 | ||
47 | idx = pollidxs [fd]; | 51 | idx = pollidxs [fd]; |
48 | 52 | ||
49 | if (idx < 0) /* need to allocate a new pollfd */ | 53 | if (idx < 0) /* need to allocate a new pollfd */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |