summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-random/src
diff options
context:
space:
mode:
authorcubicdaiya <[email protected]>2014-02-14 19:47:15 +0900
committercubicdaiya <[email protected]>2014-02-14 19:47:15 +0900
commit3d716f2376f86b7c1502c8dd0ad2248f2d5750a4 (patch)
treec72e074d94367c00375f699b26d802c9b92f0905 /mrbgems/mruby-random/src
parent7586d474b585642c1222e618d1bc1caf3e2de27f (diff)
downloadmruby-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')
-rw-r--r--mrbgems/mruby-random/src/random.c4
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();
}