summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2017-11-28 06:55:49 +0000
committertb <tb@openbsd.org>2017-11-28 06:55:49 +0000
commite34cb67ca6a03d6ed8f381b6dd30bd8428efd463 (patch)
tree0541aa34ee10ea60f48c1e3edaf15b1624099e7d /lib/libc/stdlib/rand.c
parentdocument that the 'e' command is non-portable; from kshe; ok jmc@ (diff)
downloadwireguard-openbsd-e34cb67ca6a03d6ed8f381b6dd30bd8428efd463.tar.xz
wireguard-openbsd-e34cb67ca6a03d6ed8f381b6dd30bd8428efd463.zip
GNU ld has prefixed the contents of .gnu.warning.SYMBOL sections
with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt
Diffstat (limited to 'lib/libc/stdlib/rand.c')
-rw-r--r--lib/libc/stdlib/rand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c
index f4a8d20afa3..97964f6ef93 100644
--- a/lib/libc/stdlib/rand.c
+++ b/lib/libc/stdlib/rand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rand.c,v 1.17 2016/10/22 19:19:34 tb Exp $ */
+/* $OpenBSD: rand.c,v 1.18 2017/11/28 06:55:49 tb Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -44,7 +44,7 @@ DEF_WEAK(rand_r);
#if defined(APIWARN)
__warn_references(rand_r,
- "warning: rand_r() is not random, it is deterministic.");
+ "rand_r() is not random, it is deterministic.");
#endif
int
@@ -57,7 +57,7 @@ rand(void)
#if defined(APIWARN)
__warn_references(rand,
- "warning: rand() may return deterministic values, is that what you want?");
+ "rand() may return deterministic values, is that what you want?");
#endif
void