diff options
| author | cubicdaiya <[email protected]> | 2014-02-14 19:47:15 +0900 |
|---|---|---|
| committer | cubicdaiya <[email protected]> | 2014-02-14 19:47:15 +0900 |
| commit | 3d716f2376f86b7c1502c8dd0ad2248f2d5750a4 (patch) | |
| tree | c72e074d94367c00375f699b26d802c9b92f0905 /mrbgems/mruby-random/src/random.c | |
| parent | 7586d474b585642c1222e618d1bc1caf3e2de27f (diff) | |
| download | mruby-3d716f2376f86b7c1502c8dd0ad2248f2d5750a4.tar.gz mruby-3d716f2376f86b7c1502c8dd0ad2248f2d5750a4.zip | |
Give the type 'void' to functions have no argument.
According to the C standard,
it is desirable to give the type 'void'
to functions have no argument.
Diffstat (limited to 'mrbgems/mruby-random/src/random.c')
| -rw-r--r-- | mrbgems/mruby-random/src/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-random/src/random.c b/mrbgems/mruby-random/src/random.c index ea063572e..0d71ce2df 100644 --- a/mrbgems/mruby-random/src/random.c +++ b/mrbgems/mruby-random/src/random.c @@ -30,12 +30,12 @@ static void mt_g_srand(unsigned long seed) init_genrand(seed); } -static unsigned long mt_g_rand() +static unsigned long mt_g_rand(void) { return genrand_int32(); } -static double mt_g_rand_real() +static double mt_g_rand_real(void) { return genrand_real1(); } |
