summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-05-25 10:40:33 +0000
committerdelphij <delphij@FreeBSD.org>2007-05-25 10:40:33 +0000
commit7c7730fe41734f2ed6b395188e2db852e1cf6f80 (patch)
tree4719f28d59d4607ea15afb8e270b1876ecf0dce2 /lib/libc
parentba9ece26117cf6e7d9b8ec5e3b406979a16fcbd9 (diff)
downloadFreeBSD-src-7c7730fe41734f2ed6b395188e2db852e1cf6f80.zip
FreeBSD-src-7c7730fe41734f2ed6b395188e2db852e1cf6f80.tar.gz
ANSIfy function definitions, reduces diff against OpenBSD.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/arc4random.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/lib/libc/gen/arc4random.c b/lib/libc/gen/arc4random.c
index 52e28ad..21dd09f 100644
--- a/lib/libc/gen/arc4random.c
+++ b/lib/libc/gen/arc4random.c
@@ -67,8 +67,7 @@ static inline u_int8_t arc4_getbyte(struct arc4_stream *);
static void arc4_stir(struct arc4_stream *);
static inline void
-arc4_init(as)
- struct arc4_stream *as;
+arc4_init(struct arc4_stream *as)
{
int n;
@@ -79,10 +78,7 @@ arc4_init(as)
}
static inline void
-arc4_addrandom(as, dat, datlen)
- struct arc4_stream *as;
- u_char *dat;
- int datlen;
+arc4_addrandom(struct arc4_stream *as, u_char *dat, int datlen)
{
int n;
u_int8_t si;
@@ -98,8 +94,7 @@ arc4_addrandom(as, dat, datlen)
}
static void
-arc4_stir(as)
- struct arc4_stream *as;
+arc4_stir(struct arc4_stream *as)
{
int fd, n;
struct {
@@ -133,8 +128,7 @@ arc4_stir(as)
}
static inline u_int8_t
-arc4_getbyte(as)
- struct arc4_stream *as;
+arc4_getbyte(struct arc4_stream *as)
{
u_int8_t si, sj;
@@ -149,8 +143,7 @@ arc4_getbyte(as)
}
static inline u_int32_t
-arc4_getword(as)
- struct arc4_stream *as;
+arc4_getword(struct arc4_stream *as)
{
u_int32_t val;
@@ -181,7 +174,7 @@ arc4_check_stir(void)
}
void
-arc4random_stir()
+arc4random_stir(void)
{
THREAD_LOCK();
arc4_check_init();
@@ -190,9 +183,7 @@ arc4random_stir()
}
void
-arc4random_addrandom(dat, datlen)
- u_char *dat;
- int datlen;
+arc4random_addrandom(u_char *dat, int datlen)
{
THREAD_LOCK();
arc4_check_init();
@@ -202,7 +193,7 @@ arc4random_addrandom(dat, datlen)
}
u_int32_t
-arc4random()
+arc4random(void)
{
u_int32_t rnd;
OpenPOWER on IntegriCloud