Fix function prototype in redis-cli.c.

Fix function prototype in redis-cli.c.
This commit is contained in:
Nan Xiao 2014-10-27 17:53:12 +08:00
parent 93eed9ae01
commit 2540736366

View File

@ -302,7 +302,7 @@ static void completionCallback(const char *buf, linenoiseCompletions *lc) {
*--------------------------------------------------------------------------- */ *--------------------------------------------------------------------------- */
/* Send AUTH command to the server */ /* Send AUTH command to the server */
static int cliAuth() { static int cliAuth(void) {
redisReply *reply; redisReply *reply;
if (config.auth == NULL) return REDIS_OK; if (config.auth == NULL) return REDIS_OK;
@ -315,7 +315,7 @@ static int cliAuth() {
} }
/* Send SELECT dbnum to the server */ /* Send SELECT dbnum to the server */
static int cliSelect() { static int cliSelect(void) {
redisReply *reply; redisReply *reply;
if (config.dbnum == 0) return REDIS_OK; if (config.dbnum == 0) return REDIS_OK;