X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=88ea5af2ca737f2cead9c96fc8c0ec28b523c1da;hp=69e0f3d3bf9c7382c3b78c012d5c1bfcd0fb6c7c;hb=acc71cb7580672e440a12d065c22a7fefd586847;hpb=6570e0e4433a5e5d7987697716a1f993c96eb1bb diff --git a/client.c b/client.c index 69e0f3d3..88ea5af2 100644 --- a/client.c +++ b/client.c @@ -42,7 +42,7 @@ void para_log(int ll, const char* fmt,...) va_list argp; /* ignore log message if loglevel is not high enough */ - if (!pcd || ll < pcd->conf.loglevel_arg) + if (pcd && ll < pcd->conf.loglevel_arg) return; va_start(argp, fmt); vfprintf(stderr, fmt, argp); @@ -59,7 +59,7 @@ static void client_event_handler(struct task *t) p->eof = 1; return; } - if (p->status == CL_SENDING_STDIN) { + if (p->status == CL_SENDING) { stdin_set_defaults(&sit); sit.buf = para_malloc(sit.bufsize), register_task(&sit.task);