Use 'void' for zero-argument functions

According to the C standard,
it is desirable to give the type 'void'
to functions have no argument.

Closes #1631
This commit is contained in:
cubicdaiya
2014-03-16 08:51:54 +09:00
committed by antirez
parent 8db020e2a1
commit 23f08510d5
6 changed files with 20 additions and 20 deletions

View File

@ -73,7 +73,7 @@ void appendServerSaveParams(time_t seconds, int changes) {
server.saveparamslen++;
}
void resetServerSaveParams() {
void resetServerSaveParams(void) {
zfree(server.saveparams);
server.saveparams = NULL;
server.saveparamslen = 0;