]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cclient: fix compilation error #2
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Jan 2018 15:04:40 +0000 (16:04 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Jan 2018 15:04:40 +0000 (16:04 +0100)
src/descrambler/cclient.c

index 2540e050f598b4dfd36f8601a6da256f7e68a709..25ab4588aaafbe528f588a9d402da717eb77270d 100644 (file)
@@ -591,7 +591,7 @@ cc_session(cclient_t *cc)
     if (r < 0)
       break;
     if (ev.ptr == &cc->cc_pipe) {
-      (void)read(cc->cc_pipe.rd, buf, sizeof(buf));
+      len = read(cc->cc_pipe.rd, buf, sizeof(buf));
     } else if (ev.ptr == &cc->cc_fd) {
       sbuf_alloc(&rbuf, 1024);
       len = sbuf_read(&rbuf, cc->cc_fd);