mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 20:21:21 +00:00
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:
@ -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();
|
||||
|
Reference in New Issue
Block a user