Răsfoiți Sursa

correct prototypes and 1 reloc less

Peter S. Mazinger 19 ani în urmă
părinte
comite
56c3fad784
1 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 5 5
      libc/stdlib/arc4random.c

+ 5 - 5
libc/stdlib/arc4random.c

@@ -170,8 +170,9 @@ arc4_getword(as)
 	return val;
 	return val;
 }
 }
 
 
+libc_hidden_proto(arc4random_stir)
 void
 void
-arc4random_stir()
+arc4random_stir(void)
 {
 {
 	if (!rs_initialized) {
 	if (!rs_initialized) {
 		arc4_init(&rs);
 		arc4_init(&rs);
@@ -179,11 +180,10 @@ arc4random_stir()
 	}
 	}
 	arc4_stir(&rs);
 	arc4_stir(&rs);
 }
 }
+libc_hidden_def(arc4random_stir)
 
 
 void
 void
-arc4random_addrandom(dat, datlen)
+arc4random_addrandom(u_char *dat, int datlen)
-	u_char *dat;
-	int     datlen;
 {
 {
 	if (!rs_initialized)
 	if (!rs_initialized)
 		arc4random_stir();
 		arc4random_stir();
@@ -191,7 +191,7 @@ arc4random_addrandom(dat, datlen)
 }
 }
 
 
 u_int32_t
 u_int32_t
-arc4random()
+arc4random(void)
 {
 {
 	if (!rs_initialized)
 	if (!rs_initialized)
 		arc4random_stir();
 		arc4random_stir();