diff options
author | cubicdaiya <cubicdaiya@gmail.com> | 2014-03-16 08:51:54 +0900 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-08-08 10:05:32 +0200 |
commit | 23f08510d5c63a1936bced5a3aaf7ae4860090f9 (patch) | |
tree | dc8453fa5468356409578fdbfa548692367c64db /src/rand.c | |
parent | 8db020e2a1255a2595b5c4215271dcbad3b9aac2 (diff) | |
download | redis-23f08510d5c63a1936bced5a3aaf7ae4860090f9.tar.gz |
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
Diffstat (limited to 'src/rand.c')
-rw-r--r-- | src/rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rand.c b/src/rand.c index 36cb417cf..09b0508f1 100644 --- a/src/rand.c +++ b/src/rand.c @@ -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); |