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 8dbd0134e5
commit a7c46df612
6 changed files with 20 additions and 20 deletions

View File

@ -168,7 +168,7 @@ int readBytes(void *target, long num) {
return 1;
}
int processHeader() {
int processHeader(void) {
char buf[10] = "_________";
int dump_version;
@ -602,7 +602,7 @@ void printErrorStack(entry *e) {
}
}
void process() {
void process(void) {
uint64_t num_errors = 0, num_valid_ops = 0, num_valid_bytes = 0;
entry entry;
int dump_version = processHeader();