]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audioc.c
sched: Directly pass context pointer to pre/post_select().
[paraslash.git] / audioc.c
index ab7253f698946c44651325611141ec34ffeb66e1..e50267fdfba290bf7ba39050afd5a388ced41ff0 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -121,9 +121,9 @@ static struct i9e_completer audiod_completers[] = {
        {.name = NULL}
 };
 
-static void audioc_pre_select(struct sched *s, struct task *t)
+static void audioc_pre_select(struct sched *s, void *context)
 {
-       struct audioc_task *at = task_context(t);
+       struct audioc_task *at = context;
        int ret = btr_node_status(at->btrn, 0, BTR_NT_ROOT);
 
        if (ret < 0)
@@ -131,10 +131,10 @@ static void audioc_pre_select(struct sched *s, struct task *t)
        para_fd_set(at->fd, &s->rfds, &s->max_fileno);
 }
 
-static int audioc_post_select(struct sched *s, struct task *t)
+static int audioc_post_select(struct sched *s, void *context)
 {
        char *buf = NULL;
-       struct audioc_task *at = task_context(t);
+       struct audioc_task *at = context;
        int ret = btr_node_status(at->btrn, 0, BTR_NT_ROOT);
 
        if (ret < 0)