]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
send: Avoid select-specific arguments in {pre,post}_select().
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index 23b64abbc2429d9b8a9baaa45e0ee16d881800e2..d2fbfb3424162afdab808d52bf40c33c83e61295 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -28,8 +28,8 @@
 #include "net.h"
 #include "server.h"
 #include "list.h"
-#include "send.h"
 #include "sched.h"
+#include "send.h"
 #include "vss.h"
 #include "ipc.h"
 #include "fd.h"
@@ -906,7 +906,7 @@ static void vss_pre_select(struct sched *s, void *context)
        FOR_EACH_SENDER(i) {
                if (!senders[i]->pre_select)
                        continue;
-               senders[i]->pre_select(&s->max_fileno, &s->rfds, &s->wfds);
+               senders[i]->pre_select(s);
        }
        vss_compute_timeout(s, vsst);
 }
@@ -1149,7 +1149,7 @@ static int vss_post_select(struct sched *s, void *context)
        FOR_EACH_SENDER(i) {
                if (!senders[i]->post_select)
                        continue;
-               senders[i]->post_select(&s->rfds, &s->wfds);
+               senders[i]->post_select(s);
        }
        if ((vss_playing() && !(mmd->vss_status_flags & VSS_PLAYING)) ||
                        (vss_next() && vss_playing()))