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
f013f400
Commit
f013f400
authored
Oct 23, 2011
by
antirez
Browse files
Fixed a few warnings compiling on Linux.
parent
9e6a9f30
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
f013f400
...
...
@@ -439,7 +439,7 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) {
* time PONG figure if it is newer than our figure.
* Note that it's not a problem if we have a PING already
* in progress against this node. */
if
(
node
->
pong_received
<
ntohl
(
g
->
pong_received
))
{
if
(
node
->
pong_received
<
(
signed
)
ntohl
(
g
->
pong_received
))
{
redisLog
(
REDIS_DEBUG
,
"Node pong_received updated by gossip"
);
node
->
pong_received
=
ntohl
(
g
->
pong_received
);
}
...
...
src/rio.c
View file @
f013f400
#include "fmacros.h"
#include <string.h>
#include <stdio.h>
#include "rio.h"
#include "util.h"
...
...
src/t_zset.c
View file @
f013f400
...
...
@@ -929,7 +929,7 @@ void zaddGenericCommand(redisClient *c, int incr) {
}
else
{
znode
=
zslInsert
(
zs
->
zsl
,
score
,
ele
);
incrRefCount
(
ele
);
/* Inserted in skiplist. */
redisAssertWithInfo
(
c
,
curobj
,
dictAdd
(
zs
->
dict
,
ele
,
&
znode
->
score
)
==
DICT_OK
);
redisAssertWithInfo
(
c
,
NULL
,
dictAdd
(
zs
->
dict
,
ele
,
&
znode
->
score
)
==
DICT_OK
);
incrRefCount
(
ele
);
/* Added to dictionary. */
signalModifiedKey
(
c
->
db
,
key
);
...
...
src/ziplist.c
View file @
f013f400
...
...
@@ -489,7 +489,9 @@ static unsigned char *__ziplistInsert(unsigned char *zl, unsigned char *p, unsig
size_t
offset
;
int
nextdiff
=
0
;
unsigned
char
encoding
=
0
;
long
long
value
;
long
long
value
=
123456789
;
/* initialized to avoid warning. Using a value
that is easy to see if for some reason
we use it uninitialized. */
zlentry
entry
,
tail
;
/* Find out prevlen for the entry that is inserted. */
...
...
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