summaryrefslogtreecommitdiff
path: root/src/rdb.c
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2019-03-04 19:43:00 +0800
committerzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2019-03-04 19:43:00 +0800
commitfb81d1b3f891746e886f44cad5df96a29e6b9f51 (patch)
tree5efb59ed9bb3f1f3a48f0f201758fe1ec3efbd5a /src/rdb.c
parent4edb1d7e100a75a4cf7d804e716744dbb815733f (diff)
downloadredis-fb81d1b3f891746e886f44cad5df96a29e6b9f51.tar.gz
Fix compile warning when log aux field
Diffstat (limited to 'src/rdb.c')
-rw-r--r--src/rdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rdb.c b/src/rdb.c
index b800ee481..52dddf210 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1965,7 +1965,7 @@ int rdbLoadRio(rio *rdb, rdbSaveInfo *rsi, int loading_aof) {
}
} else if (!strcasecmp(auxkey->ptr,"redis-ver")) {
serverLog(LL_NOTICE,"Loading RDB produced by version %s",
- auxval->ptr);
+ (char*)auxval->ptr);
} else if (!strcasecmp(auxkey->ptr,"ctime")) {
time_t age = time(NULL)-strtol(auxval->ptr,NULL,10);
if (age < 0) age = 0;