Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5012b0f1
Commit
5012b0f1
authored
Oct 17, 2014
by
antirez
Browse files
rio.c fdset write() method fixed: wrong type for return value.
parent
5fb51545
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rio.c
View file @
5012b0f1
...
@@ -167,7 +167,7 @@ void rioInitWithFile(rio *r, FILE *fp) {
...
@@ -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
;
s
size_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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment