From 3d716f2376f86b7c1502c8dd0ad2248f2d5750a4 Mon Sep 17 00:00:00 2001 From: cubicdaiya Date: Fri, 14 Feb 2014 19:47:15 +0900 Subject: 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. --- mrbgems/mruby-random/src/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mrbgems/mruby-random/src/random.c') 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(); } -- cgit v1.2.3