X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=filter.c;h=fb36a557be40f75504cdfc47ba91f5b275516250;hb=36df09fbcf3f6e80cc0990bad92ec16a0d1b2a00;hp=52a1ce5bf05c85c514f56e67cc4cf5ff5da6ce30;hpb=6105cde18ae21b82708a4c98aa2d54820afd47a5;p=paraslash.git diff --git a/filter.c b/filter.c index 52a1ce5b..fb36a557 100644 --- a/filter.c +++ b/filter.c @@ -41,7 +41,7 @@ INIT_STDERR_LOGGING(conf.loglevel_arg); static void filter_event_handler(struct task *t) { - PARA_NOTICE_LOG("%s\n", PARA_STRERROR(-t->ret)); + PARA_NOTICE_LOG("%s\n", para_strerror(-t->ret)); unregister_task(t); } @@ -66,9 +66,9 @@ static int init_filter_chain(void) fc->inbuf = sit->buf; fc->in_loaded = &sit->loaded; - fc->input_eof = &sit->eof; - fc->eof = 0; - fc->output_eof = &sot->eof; + fc->input_error = &sit->error; + fc->error = 0; + fc->output_error = &sot->error; fc->task.private_data = fc; fc->task.pre_select = filter_pre_select; fc->task.event_handler = filter_event_handler; @@ -160,7 +160,7 @@ int main(int argc, char *argv[]) stdout_set_defaults(sot); sot->buf = fc->outbuf; sot->loaded = fc->out_loaded; - sot->input_eof = &fc->eof; + sot->input_error = &fc->error; register_task(&sit->task); register_task(&fc->task); @@ -172,6 +172,6 @@ out: free(sit->buf); close_filters(fc); if (ret < 0) - PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret)); + PARA_EMERG_LOG("%s\n", para_strerror(-ret)); return ret < 0? EXIT_FAILURE : EXIT_SUCCESS; }