rio.c fdset write() method fixed: wrong type for return value.
This commit is contained in:
parent
ff228efb5c
commit
7786d36b50
@ -167,7 +167,7 @@ void rioInitWithFile(rio *r, FILE *fp) {
|
|||||||
* if there is some pending buffer, so this function is also used in order
|
* if there is some pending buffer, so this function is also used in order
|
||||||
* to implement rioFdsetFlush(). */
|
* to implement rioFdsetFlush(). */
|
||||||
static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) {
|
static size_t rioFdsetWrite(rio *r, const void *buf, size_t len) {
|
||||||
size_t retval;
|
ssize_t retval;
|
||||||
int j;
|
int j;
|
||||||
unsigned char *p = (unsigned char*) buf;
|
unsigned char *p = (unsigned char*) buf;
|
||||||
int doflush = (buf == NULL && len == 0);
|
int doflush = (buf == NULL && len == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user