X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=dccp_send.c;h=47d6b4089d8f7f229c27d3af262068f2d37ee2c3;hb=e854df2fe2cfb3ae90a439828fc13cc0fc470aa9;hp=bca7ad6781e29d2bb1bea686d3971e02ede59909;hpb=5d27648bfa9921f158e700151296af3e4c4fe13c;p=paraslash.git diff --git a/dccp_send.c b/dccp_send.c index bca7ad67..47d6b408 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -24,8 +24,8 @@ #include "net.h" #include "server.h" #include "list.h" -#include "send.h" #include "sched.h" +#include "send.h" #include "vss.h" #include "fd.h" @@ -36,14 +36,13 @@ struct dccp_fec_client { struct fec_client *fc; }; -static void dccp_pre_select(int *max_fileno, fd_set *rfds, - __a_unused fd_set *wfds) +static void dccp_pre_select(struct sched *s) { unsigned n; FOR_EACH_LISTEN_FD(n, dss) if (dss->listen_fds[n] >= 0) - para_fd_set(dss->listen_fds[n], rfds, max_fileno); + para_fd_set(dss->listen_fds[n], &s->rfds, &s->max_fileno); } /** @@ -119,14 +118,14 @@ static void dccp_send_fec(struct sender_client *sc, char *buf, size_t len) dccp_shutdown_client(sc); } -static void dccp_post_select(fd_set *rfds, __a_unused fd_set *wfds) +static void dccp_post_select(__a_unused struct sched *s) { struct sender_client *sc; struct dccp_fec_client *dfc; int tx_ccid; uint32_t k, n; - sc = accept_sender_client(dss, rfds); + sc = accept_sender_client(dss); if (!sc) return;