X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=fef6ba4a5bc4194048a951d9ceb657d91d14e4ae;hp=fdd07b247e617c86d3f38ff059d8bb8672356a9c;hb=b6100d88b5a03e824991b4a5bfd90b0e951e8d2b;hpb=00e4d4da1b2c00da139b09d3ed4ab9ad9fba2691 diff --git a/client.c b/client.c index fdd07b24..fef6ba4a 100644 --- a/client.c +++ b/client.c @@ -6,9 +6,12 @@ /** \file client.c the client program used to connect to para_server */ +#include + #include "para.h" #include "list.h" #include "sched.h" +#include "crypt.h" #include "client.cmdline.h" #include "string.h" #include "stdin.h" @@ -40,7 +43,7 @@ static void supervisor_post_select(__a_unused struct sched *s, struct task *t) } if (ct->status == CL_RECEIVING) { stdout_set_defaults(&sot); - sot.buf = ct->buf; + sot.bufp = &ct->buf; sot.loaded = &ct->loaded; sot.input_error = &ct->task.error; register_task(&sot.task); @@ -80,10 +83,9 @@ int main(int argc, char *argv[]) s.default_timeout.tv_sec = 1; s.default_timeout.tv_usec = 0; - ret = client_open(argc, argv, &ct); + ret = client_open(argc, argv, &ct, &client_loglevel); if (ret < 0) /* can not use PARA_LOG here because ct is NULL */ exit(EXIT_FAILURE); - client_loglevel = get_loglevel_by_name(ct->conf.loglevel_arg); register_task(&svt); ret = schedule(&s); if (ret < 0)