Fixed a few warnings compiling on Linux.

This commit is contained in:
antirez
2011-10-23 10:57:01 +02:00
parent 9e6a9f30ea
commit f013f40003
4 changed files with 7 additions and 3 deletions

View File

@ -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);
}