Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
3c32344a
Commit
3c32344a
authored
Jun 15, 2017
by
amallia
Browse files
Small fixes
parent
97cd8157
Changes
2
Show whitespace changes
Inline
Side-by-side
hiredis.c
View file @
3c32344a
...
@@ -1007,9 +1007,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap) {
...
@@ -1007,9 +1007,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap) {
void
*
redisCommand
(
redisContext
*
c
,
const
char
*
format
,
...)
{
void
*
redisCommand
(
redisContext
*
c
,
const
char
*
format
,
...)
{
va_list
ap
;
va_list
ap
;
void
*
reply
=
NULL
;
va_start
(
ap
,
format
);
va_start
(
ap
,
format
);
reply
=
redisvCommand
(
c
,
format
,
ap
);
void
*
reply
=
redisvCommand
(
c
,
format
,
ap
);
va_end
(
ap
);
va_end
(
ap
);
return
reply
;
return
reply
;
}
}
...
...
net.c
View file @
3c32344a
...
@@ -143,7 +143,6 @@ int redisKeepAlive(redisContext *c, int interval) {
...
@@ -143,7 +143,6 @@ int redisKeepAlive(redisContext *c, int interval) {
}
}
#else
#else
#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__)
#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__)
val
=
interval
;
if
(
setsockopt
(
fd
,
IPPROTO_TCP
,
TCP_KEEPIDLE
,
&
val
,
sizeof
(
val
))
<
0
)
{
if
(
setsockopt
(
fd
,
IPPROTO_TCP
,
TCP_KEEPIDLE
,
&
val
,
sizeof
(
val
))
<
0
)
{
__redisSetError
(
c
,
REDIS_ERR_OTHER
,
strerror
(
errno
));
__redisSetError
(
c
,
REDIS_ERR_OTHER
,
strerror
(
errno
));
return
REDIS_ERR
;
return
REDIS_ERR
;
...
...
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