X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvconn-tcp.c;h=f97761fe1c00187e44e0b3ad3b54741def380c21;hb=cf6207b610f15e73984e94c6c84ee07730ec746b;hp=1878d2db42b2274dd82c68db52bc6975edb7474a;hpb=9df2b7bb71e50e05f63789658c91a73c175b6787;p=openvswitch diff --git a/lib/vconn-tcp.c b/lib/vconn-tcp.c index 1878d2db..f97761fe 100644 --- a/lib/vconn-tcp.c +++ b/lib/vconn-tcp.c @@ -139,7 +139,7 @@ tcp_close(struct vconn *vconn) free(tcp); } -static void +static bool tcp_prepoll(struct vconn *vconn, int want, struct pollfd *pfd) { struct tcp_vconn *tcp = tcp_vconn_cast(vconn); @@ -150,6 +150,7 @@ tcp_prepoll(struct vconn *vconn, int want, struct pollfd *pfd) if (want & WANT_SEND || tcp->txbuf) { pfd->events |= POLLOUT; } + return false; } static void @@ -336,7 +337,7 @@ ptcp_close(struct vconn *vconn) free(ptcp); } -static void +static bool ptcp_prepoll(struct vconn *vconn, int want, struct pollfd *pfd) { struct ptcp_vconn *ptcp = ptcp_vconn_cast(vconn); @@ -344,6 +345,7 @@ ptcp_prepoll(struct vconn *vconn, int want, struct pollfd *pfd) if (want & WANT_ACCEPT) { pfd->events |= POLLIN; } + return false; } static int