doxify client.h
[paraslash.git] / client.c
index d2f4643372200465b0a576184b9fefe00761f01c..95dacd75f8a9d39c0e85f8118481b1600ecc88f8 100644 (file)
--- 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);