ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/s_bsd_poll.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/s_bsd_poll.c (file contents):
Revision 5347 by michael, Sun Jan 11 12:42:20 2015 UTC vs.
Revision 5902 by michael, Mon May 4 11:56:42 2015 UTC

# Line 177 | Line 177 | comm_select(void)
177  
178      if (revents & (POLLRDNORM | POLLIN | POLLHUP | POLLERR))
179      {
180 <      if ((hdl = F->read_handler) != NULL)
180 >      if ((hdl = F->read_handler))
181        {
182          F->read_handler = NULL;
183          hdl(F, F->read_data);
# Line 188 | Line 188 | comm_select(void)
188  
189      if (revents & (POLLWRNORM | POLLOUT | POLLHUP | POLLERR))
190      {
191 <      if ((hdl = F->write_handler) != NULL)
191 >      if ((hdl = F->write_handler))
192        {
193          F->write_handler = NULL;
194          hdl(F, F->write_data);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)