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
redis
Commits
e54fe9a7
Commit
e54fe9a7
authored
Apr 24, 2012
by
antirez
Browse files
A few compiler warnings suppressed.
parent
a66a4963
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
e54fe9a7
...
...
@@ -4,6 +4,7 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/socket.h>
void
clusterAcceptHandler
(
aeEventLoop
*
el
,
int
fd
,
void
*
privdata
,
int
mask
);
void
clusterReadHandler
(
aeEventLoop
*
el
,
int
fd
,
void
*
privdata
,
int
mask
);
...
...
src/redis-cli.c
View file @
e54fe9a7
...
...
@@ -890,7 +890,7 @@ static int evalMode(int argc, char **argv) {
static
void
latencyMode
(
void
)
{
redisReply
*
reply
;
long
long
start
,
latency
,
min
,
max
,
tot
,
count
=
0
;
long
long
start
,
latency
,
min
=
0
,
max
=
0
,
tot
=
0
,
count
=
0
;
double
avg
;
if
(
!
context
)
exit
(
1
);
...
...
@@ -977,7 +977,7 @@ static void slaveMode(void) {
static
void
findBigKeys
(
void
)
{
unsigned
long
long
biggest
[
5
]
=
{
0
,
0
,
0
,
0
,
0
};
unsigned
long
long
samples
=
0
;
redisReply
*
reply1
,
*
reply2
,
*
reply3
;
redisReply
*
reply1
,
*
reply2
,
*
reply3
=
NULL
;
char
*
sizecmd
,
*
typename
[]
=
{
"string"
,
"list"
,
"set"
,
"hash"
,
"zset"
};
int
type
;
...
...
src/t_zset.c
View file @
e54fe9a7
...
...
@@ -1259,7 +1259,9 @@ int zuiNext(zsetopsrc *op, zsetopval *val) {
if
(
op
->
type
==
REDIS_SET
)
{
iterset
*
it
=
&
op
->
iter
.
set
;
if
(
op
->
encoding
==
REDIS_ENCODING_INTSET
)
{
if
(
!
intsetGet
(
it
->
is
.
is
,
it
->
is
.
ii
,(
int64_t
*
)
&
val
->
ell
))
int64_t
ell
=
val
->
ell
;
if
(
!
intsetGet
(
it
->
is
.
is
,
it
->
is
.
ii
,
&
ell
))
return
0
;
val
->
score
=
1
.
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