clang warnings

This commit is contained in:
Olof Hagsand 2019-12-23 14:03:42 +00:00
parent 7fb452f96e
commit a87e9cb246
9 changed files with 11 additions and 11 deletions

View file

@ -377,7 +377,7 @@ clicon_msg_rcv(int s,
goto done;
}
memcpy(*msg, &hdr, hlen);
if ((len2 = atomicio(read, s, (*msg)->op_body, mlen - sizeof(hdr))) < 0){
if ((len2 = atomicio(read, s, (*msg)->op_body, mlen - sizeof(hdr))) == 0){
clicon_err(OE_CFG, errno, "read");
goto done;
}