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.
This commit is contained in:
cubicdaiya
2014-02-14 19:47:15 +09:00
parent 7586d474b5
commit 3d716f2376
+2 -2
View File
@@ -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();
}