summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-06-01 01:01:57 +0000
committerguenther <guenther@openbsd.org>2012-06-01 01:01:57 +0000
commitb10cd18816ef05a64b29120c243bb2006d9f7465 (patch)
tree1db895bc32a81056ffcf399a00ae15b76777bfe2 /lib/libc/stdlib/random.c
parentfix memory leak when mux socket creation fails; bz#2002 from bert.wesarg (diff)
downloadwireguard-openbsd-b10cd18816ef05a64b29120c243bb2006d9f7465.tar.xz
wireguard-openbsd-b10cd18816ef05a64b29120c243bb2006d9f7465.zip
Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),
and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@
Diffstat (limited to 'lib/libc/stdlib/random.c')
-rw-r--r--lib/libc/stdlib/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/random.c b/lib/libc/stdlib/random.c
index 5a9a7c33136..9c5b9d0f3f3 100644
--- a/lib/libc/stdlib/random.c
+++ b/lib/libc/stdlib/random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: random.c,v 1.16 2012/03/21 12:36:49 millert Exp $ */
+/* $OpenBSD: random.c,v 1.17 2012/06/01 01:01:57 guenther Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved.
@@ -326,7 +326,7 @@ initstate(u_int seed, char *arg_state, size_t n)
* Returns a pointer to the old state information.
*/
char *
-setstate(const char *arg_state)
+setstate(char *arg_state)
{
int32_t *new_state = (int32_t *)arg_state;
int32_t type = new_state[0] % MAX_TYPES;