Commit 2adac6ff authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Properly declare functions taking no parameters.

parent 710632a1
......@@ -60,7 +60,7 @@ void PPM_ya_rand_finish(void);
* @return random number in range [0,IRAND_MAX]
**/
int
PPM_irandp();
PPM_irandp(void);
/**
* PRNG function for type int
......
......@@ -81,7 +81,7 @@ PPM_irand(void)
FCALLSCFUN0(INT,PPM_irand,PPM_IRAND,ppm_irand)
int
PPM_irandp()
PPM_irandp(void)
{
uint32_t i = PPM_ya_random() & ((UINT32_C(1)<<31) - UINT32_C(1));
return (int)i;
......@@ -181,7 +181,7 @@ PPM_irand8(void)
FCALLSCFUN0(INT64,PPM_irand8,PPM_IRAND8,ppm_irand8)
int64_t
PPM_irandp8()
PPM_irandp8(void)
{
uint64_t i = PPM_ya_random64() & ((UINT64_C(1)<<63) - UINT64_C(1));
return (int64_t)i;
......@@ -270,7 +270,7 @@ FCALLSCSUB3(PPM_irandr8_a_f,PPM_IRANDR8_A_2D,ppm_irandr8_a_2d,INT64VV,INT,PVOID)
FCALLSCSUB3(PPM_irandr8_a_f,PPM_IRANDR8_A_3D,ppm_irandr8_a_3d,INT64VVV,INT,PVOID)
double
PPM_drand()
PPM_drand(void)
{
return PPM_ya_fsgrandom();
}
......@@ -278,7 +278,7 @@ PPM_drand()
FCALLSCFUN0(DOUBLE,PPM_ya_fsgrandom,PPM_DRAND,ppm_drand)
double
PPM_drandp()
PPM_drandp(void)
{
return PPM_ya_frandom();
}
......@@ -363,7 +363,7 @@ FCALLSCSUB3(PPM_drandr_a_f,PPM_DRANDR_A_2D,ppm_drandr_a_2d,DOUBLEVV,INT,PVOID)
FCALLSCSUB3(PPM_drandr_a_f,PPM_DRANDR_A_3D,ppm_drandr_a_3d,DOUBLEVVV,INT,PVOID)
float
PPM_frand()
PPM_frand(void)
{
return PPM_ya_fsgrandomf();
}
......@@ -371,7 +371,7 @@ PPM_frand()
FCALLSCFUN0(FLOAT,PPM_frand,PPM_FRAND,ppm_frand)
float
PPM_frandp()
PPM_frandp(void)
{
return PPM_ya_frandomf();
}
......
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