Polish previous commit

Feedback from Dridi and a Flexelint warning.

Ref 91a85840
parent 91a85840
......@@ -684,9 +684,9 @@ VSB_tofile(const struct vsb *s, int fd)
r = write(fd, p, sz);
if (r < 0)
return (-1);
assert(r <= sz);
assert((typeof(sz))r <= sz);
p += r;
sz -= r;
}
return (r >= 0 ? 0 : -1);
return (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment