提交 fd112f52 编写于 作者: A antirez

rio.c fdset write() method fixed: wrong type for return value.

上级 525c488f
......@@ -167,7 +167,7 @@ void rioInitWithFile(rio *r, FILE *fp) {
* if there is some pending buffer, so this function is also used in order
* to implement rioFdsetFlush(). */
static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) {
size_t retval;
ssize_t retval;
int j;
unsigned char *p = (unsigned char*) buf;
int doflush = (buf == NULL && len == 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册