diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-23 12:43:15 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-23 13:31:11 -0800 |
| commit | 35dece848d46456441d75181953290a23193e84c (patch) | |
| tree | 9d3b79f1f811fb0d3c24bcba27b923a026d0a490 /isisd/topology/random.c | |
| parent | 3a7c85d1dedb672ba19ea8958f18f5f7d0fe2321 (diff) | |
Quagga: Fixup some compile warnings
Fixup compile warnings for when you turn on --enable-gcc-ultra-verbose=yes
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd/topology/random.c')
| -rw-r--r-- | isisd/topology/random.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/isisd/topology/random.c b/isisd/topology/random.c index c49c082021..157cbdb274 100644 --- a/isisd/topology/random.c +++ b/isisd/topology/random.c @@ -20,7 +20,7 @@ double randg01(void); long nrand(long); void free_arc(void *); -unsigned long timer () +unsigned long timer (void) { struct tms hold; times(&hold); @@ -88,7 +88,7 @@ long init_seed; #define B 2147483647 #define BF 2147483647. -static long irand () +static long irand (void) { internal_seed = ( internal_seed * A ) & B; return (long) internal_seed ; @@ -107,7 +107,7 @@ static long irand () #define A1 37252 #define A2 29589 -static long xrand() +static long xrand(void) { unsigned long is1, is2; @@ -122,7 +122,7 @@ static long xrand() /*********************************************************************/ -double rand01() +double rand01(void) { return (double) (irand() / BF) ; } @@ -131,7 +131,7 @@ double rand01() #define NK 12 -double randg01() +double randg01(void) { int i; double sum = 0; |
