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
92cfab44
Commit
92cfab44
authored
Jan 21, 2015
by
antirez
Browse files
Fix gcc warning for lack of casting to char pointer.
parent
e467cf5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
92cfab44
...
@@ -1316,12 +1316,14 @@ int rdbLoad(char *filename) {
...
@@ -1316,12 +1316,14 @@ int rdbLoad(char *filename) {
/* All the fields with a name staring with '%' are considered
/* All the fields with a name staring with '%' are considered
* information fields and are logged at startup with a log
* information fields and are logged at startup with a log
* level of NOTICE. */
* 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
{
}
else
{
/* We ignore fields we don't understand, as by AUX field
/* We ignore fields we don't understand, as by AUX field
* contract. */
* contract. */
redisLog
(
REDIS_DEBUG
,
"Unrecognized RDB AUX field: '%s'"
,
redisLog
(
REDIS_DEBUG
,
"Unrecognized RDB AUX field: '%s'"
,
auxkey
->
ptr
);
(
char
*
)
auxkey
->
ptr
);
}
}
decrRefCount
(
auxkey
);
decrRefCount
(
auxkey
);
...
...
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