diff options
| author | lukem <lukem@NetBSD.org> | 1999-09-20 04:38:56 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1999-09-20 04:38:56 +0000 |
| commit | d896261208b4610b0c4e86ea95caad3cdc86a4ac (patch) | |
| tree | 9a96db945c9ffba191e3aa4d741cf5d30fbd30f2 /lib/libc/stdlib/random.c | |
| parent | f6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff) | |
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libc/stdlib/random.c')
| -rw-r--r-- | lib/libc/stdlib/random.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libc/stdlib/random.c b/lib/libc/stdlib/random.c index 567aee14f66..db845e94fe4 100644 --- a/lib/libc/stdlib/random.c +++ b/lib/libc/stdlib/random.c @@ -1,4 +1,4 @@ -/* $NetBSD: random.c,v 1.17 1999/09/16 11:45:35 lukem Exp $ */ +/* $NetBSD: random.c,v 1.18 1999/09/20 04:39:41 lukem Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95"; #else -__RCSID("$NetBSD: random.c,v 1.17 1999/09/16 11:45:35 lukem Exp $"); +__RCSID("$NetBSD: random.c,v 1.18 1999/09/20 04:39:41 lukem Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -299,10 +299,6 @@ initstate(seed, arg_state, n) long *long_arg_state; _DIAGASSERT(arg_state != NULL); -#ifdef _DIAGNOSTIC - if (arg_state == NULL) - return (NULL); -#endif long_arg_state = (long *)(void *)arg_state; @@ -375,10 +371,6 @@ setstate(arg_state) void *ostate = (void *)(&state[-1]); _DIAGASSERT(arg_state != NULL); -#ifdef _DIAGNOSTIC - if (arg_state == NULL) - return (NULL); -#endif new_state = (long *)(void *)arg_state; type = (int)(new_state[0] % MAX_TYPES); |
