]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - interactive.c
sched: Kill old ->post_select variant.
[paraslash.git] / interactive.c
index 44db6c58fda6b4080c0874725c7a9bd4b9f6fbe4..cfc1d60663b28e615f31d3c70e6a64e906bdf650 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2011-2013 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -307,7 +307,7 @@ static void i9e_line_handler(char *line)
        }
 }
 
-static void i9e_post_select(__a_unused struct sched *s, struct task *t)
+static int i9e_post_select(__a_unused struct sched *s, __a_unused struct task *t)
 {
        int ret;
        struct i9e_client_info *ici = i9ep->ici;
@@ -361,7 +361,7 @@ rm_btrn:
                wipe_bottom_line();
 out:
        i9ep->caught_sigint = false;
-       t->error = ret;
+       return ret;
 }
 
 static void i9e_pre_select(struct sched *s, __a_unused struct task *t)
@@ -447,7 +447,7 @@ int i9e_open(struct i9e_client_info *ici, struct sched *s)
        if (ret < 0)
                return ret;
        i9ep->task.pre_select = i9e_pre_select;
-       i9ep->task.post_select = i9e_post_select;
+       i9ep->task.new_post_select = i9e_post_select;
        sprintf(i9ep->task.status, "i9e");
        register_task(s, &i9ep->task);
        rl_readline_name = "para_i9e";