summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-13 15:20:40 +0000
committerguenther <guenther@openbsd.org>2015-09-13 15:20:40 +0000
commitc68f07f6253c5c6c3d98c1f2e018ace59d2b28b8 (patch)
tree93593194d9433829fb6762df65cd7ccddd3a3007 /lib/libc
parentRemove unused and incorrect defines GPT_PARTSPERSEC and GPT_SECOFFSET. (diff)
downloadwireguard-openbsd-c68f07f6253c5c6c3d98c1f2e018ace59d2b28b8.tar.xz
wireguard-openbsd-c68f07f6253c5c6c3d98c1f2e018ace59d2b28b8.zip
Overshot w/PROTO_DEPRECATED: seed48_deterministic() is used internally
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/hidden/stdlib.h4
-rw-r--r--lib/libc/stdlib/seed48.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/hidden/stdlib.h b/lib/libc/hidden/stdlib.h
index c57d4cd488c..70f7f6e8108 100644
--- a/lib/libc/hidden/stdlib.h
+++ b/lib/libc/hidden/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.1 2015/09/13 08:31:47 guenther Exp $ */
+/* $OpenBSD: stdlib.h,v 1.2 2015/09/13 15:20:40 guenther Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -124,7 +124,7 @@ PROTO_NORMAL(realloc);
PROTO_NORMAL(reallocarray);
PROTO_DEPRECATED(realpath);
PROTO_DEPRECATED(seed48);
-PROTO_DEPRECATED(seed48_deterministic);
+PROTO_NORMAL(seed48_deterministic);
PROTO_NORMAL(setenv);
PROTO_DEPRECATED(setproctitle);
PROTO_DEPRECATED(setprogname);
diff --git a/lib/libc/stdlib/seed48.c b/lib/libc/stdlib/seed48.c
index 0485ed6a10d..b4b4424c73b 100644
--- a/lib/libc/stdlib/seed48.c
+++ b/lib/libc/stdlib/seed48.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: seed48.c,v 1.5 2015/08/27 04:33:31 guenther Exp $ */
+/* $OpenBSD: seed48.c,v 1.6 2015/09/13 15:20:40 guenther Exp $ */
/*
* Copyright (c) 1993 Martin Birgmeier
* All rights reserved.
@@ -42,3 +42,4 @@ seed48_deterministic(unsigned short xseed[3])
__rand48_add = RAND48_ADD;
return sseed;
}
+DEF_WEAK(seed48_deterministic);