1
0
mirror of https://github.com/fluencelabs/redis synced 2025-07-17 09:31:55 +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 
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

@@ -66,7 +66,7 @@
#define HI_BIT (1L << (2 * N - 1))
static uint32_t x[3] = { X0, X1, X2 }, a[3] = { A0, A1, A2 }, c = C;
static void next();
static void next(void);
int32_t redisLrand48() {
next();
@@ -77,7 +77,7 @@ void redisSrand48(int32_t seedval) {
SEED(X0, LOW(seedval), HIGH(seedval));
}
static void next() {
static void next(void) {
uint32_t p[2], q[2], r[2], carry0, carry1;
MUL(a[0], x[0], p);