diff options
author | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2019-03-04 19:43:00 +0800 |
---|---|---|
committer | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2019-03-04 19:43:00 +0800 |
commit | fb81d1b3f891746e886f44cad5df96a29e6b9f51 (patch) | |
tree | 5efb59ed9bb3f1f3a48f0f201758fe1ec3efbd5a /src/rdb.c | |
parent | 4edb1d7e100a75a4cf7d804e716744dbb815733f (diff) | |
download | redis-fb81d1b3f891746e886f44cad5df96a29e6b9f51.tar.gz |
Fix compile warning when log aux field
Diffstat (limited to 'src/rdb.c')
-rw-r--r-- | src/rdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |