input/curl: use MultiSocketMonitor constants instead of GLib

This commit is contained in:
Max Kellermann 2013-10-18 08:30:44 +02:00
parent 909ff4b8a9
commit bd5a70c712
1 changed files with 6 additions and 3 deletions

View File

@ -257,17 +257,20 @@ input_curl_fd_events(int fd, fd_set *rfds, fd_set *wfds, fd_set *efds)
gushort events = 0;
if (FD_ISSET(fd, rfds)) {
events |= G_IO_IN | G_IO_HUP | G_IO_ERR;
events |= MultiSocketMonitor::READ | MultiSocketMonitor::HANGUP
| MultiSocketMonitor::ERROR;
FD_CLR(fd, rfds);
}
if (FD_ISSET(fd, wfds)) {
events |= G_IO_OUT | G_IO_ERR;
events |= MultiSocketMonitor::WRITE |
MultiSocketMonitor::ERROR;
FD_CLR(fd, wfds);
}
if (FD_ISSET(fd, efds)) {
events |= G_IO_HUP | G_IO_ERR;
events |= MultiSocketMonitor::HANGUP |
MultiSocketMonitor::ERROR;
FD_CLR(fd, efds);
}