Commit 3d716f23 authored by cubicdaiya's avatar cubicdaiya

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.
parent 7586d474
...@@ -30,12 +30,12 @@ static void mt_g_srand(unsigned long seed) ...@@ -30,12 +30,12 @@ static void mt_g_srand(unsigned long seed)
init_genrand(seed); init_genrand(seed);
} }
static unsigned long mt_g_rand() static unsigned long mt_g_rand(void)
{ {
return genrand_int32(); return genrand_int32();
} }
static double mt_g_rand_real() static double mt_g_rand_real(void)
{ {
return genrand_real1(); return genrand_real1();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment