]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/rand.c
Enable warnings and fix them, all of them
[micropolis] / src / sim / rand.c
index 631152623090e50c0fc87dc4592f025552116c14..54dc9e8edc852ff19527c7e25b2fc3544435fc7f 100644 (file)
 static unsigned QUAD next = 1;
 
 int
-sim_rand()
+sim_rand(void)
 {
        next = next * 1103515245 + 12345;
        return ((next % ((SIM_RAND_MAX + 1) <<8)) >>8);
 }
 
 void
-sim_srand(seed)
-u_int seed;
+sim_srand(u_int seed)
 {
        next = seed;
 }
Impressum, Datenschutz