Fix gcc warning for lack of casting to char pointer.

This commit is contained in:
antirez 2015-01-21 14:51:42 +01:00
parent e467cf5db3
commit 92cfab44b2

View File

@ -1316,12 +1316,14 @@ int rdbLoad(char *filename) {
/* All the fields with a name staring with '%' are considered
* information fields and are logged at startup with a log
* level of NOTICE. */
redisLog(REDIS_NOTICE,"RDB '%s': %s", auxkey->ptr, auxval->ptr);
redisLog(REDIS_NOTICE,"RDB '%s': %s",
(char*)auxkey->ptr,
(char*)auxval->ptr);
} else {
/* We ignore fields we don't understand, as by AUX field
* contract. */
redisLog(REDIS_DEBUG,"Unrecognized RDB AUX field: '%s'",
auxkey->ptr);
(char*)auxkey->ptr);
}
decrRefCount(auxkey);