X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=filter.c;h=8ef9ac1afa2db2860d12eec33c68f18581fbeb11;hp=7726e35f94df5823c2f4cea9ed5ac2e679a9a3e7;hb=85094cd802bdb606d4e2bf7ed66dec51db2a0953;hpb=e8089cd5efad59a5eec689117acf563a38b8c6c7 diff --git a/filter.c b/filter.c index 7726e35f..8ef9ac1a 100644 --- a/filter.c +++ b/filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file filter.c The stand-alone filter program. */ #include -#include #include "para.h" #include "filter.cmdline.h" @@ -20,6 +19,7 @@ #include "stdin.h" #include "stdout.h" #include "error.h" +#include "version.h" /** The list of all status items used by para_{server,audiod,gui}. */ const char *status_item_list[] = {STATUS_ITEM_ARRAY}; @@ -119,7 +119,7 @@ int main(int argc, char *argv[]) sit->btrn = btr_new_node(&(struct btr_node_description) EMBRACE(.name = "stdin")); stdin_set_defaults(sit); - register_task(&sit->task); + register_task(&s, &sit->task); fns = para_malloc(conf.filter_given * sizeof(*fns)); for (i = 0, parent = sit->btrn; i < conf.filter_given; i++) { @@ -142,13 +142,13 @@ int main(int argc, char *argv[]) fn->task.pre_select = f->pre_select; fn->task.post_select = f->post_select; f->open(fn); - register_task(&fn->task); + register_task(&s, &fn->task); parent = fn->btrn; } sot->btrn = btr_new_node(&(struct btr_node_description) EMBRACE(.name = "stdout", .parent = parent)); stdout_set_defaults(sot); - register_task(&sot->task); + register_task(&s, &sot->task); s.default_timeout.tv_sec = 1; s.default_timeout.tv_usec = 0;