diff options
author | 1996-09-15 09:30:42 +0000 | |
---|---|---|
committer | 1996-09-15 09:30:42 +0000 | |
commit | c8f91e0d750eb1dd5aa79a93a20a522c47067c28 (patch) | |
tree | 151e2a572b80f59c243874a0738c218470cf1bc0 /lib/libc/stdlib/random.c | |
parent | print debugging flags in usage(); idea from freebsd (diff) | |
download | wireguard-openbsd-c8f91e0d750eb1dd5aa79a93a20a522c47067c28.tar.xz wireguard-openbsd-c8f91e0d750eb1dd5aa79a93a20a522c47067c28.zip |
Remove dead code
Remove unused variables
Silence some warnings
lint(1) is your friend
Diffstat (limited to 'lib/libc/stdlib/random.c')
-rw-r--r-- | lib/libc/stdlib/random.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/stdlib/random.c b/lib/libc/stdlib/random.c index de7cc3cf440..46b67b5ec76 100644 --- a/lib/libc/stdlib/random.c +++ b/lib/libc/stdlib/random.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: random.c,v 1.3 1996/08/19 08:33:46 tholo Exp $"; +static char *rcsid = "$OpenBSD: random.c,v 1.4 1996/09/15 09:31:51 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -193,13 +193,12 @@ srandom(x) u_int x; { register long int test; - register int i, j; + register int i; ldiv_t val; if (rand_type == TYPE_0) state[0] = x; else { - j = 1; state[0] = x; for (i = 1; i < rand_deg; i++) { /* |