summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/findfp.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-08-27 04:37:09 +0000
committerguenther <guenther@openbsd.org>2015-08-27 04:37:09 +0000
commitbb64080b0f4926cfaad11f8655a5a0ff1c21e50f (patch)
tree2f9ddff73dde02f16705737abba78e6aa5e185c8 /lib/libc/stdio/findfp.c
parentMove the __rand48_* declarations into rand48.h, and then hide both them (diff)
downloadwireguard-openbsd-bb64080b0f4926cfaad11f8655a5a0ff1c21e50f.tar.xz
wireguard-openbsd-bb64080b0f4926cfaad11f8655a5a0ff1c21e50f.zip
Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal
symbols that are not longer exported. (This improves the generated code.) ok deraadt@
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r--lib/libc/stdio/findfp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c
index ee866fa26ce..0cdd1faf3a0 100644
--- a/lib/libc/stdio/findfp.c
+++ b/lib/libc/stdio/findfp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: findfp.c,v 1.17 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: findfp.c,v 1.18 2015/08/27 04:37:09 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -58,7 +58,7 @@ static struct glue uglue = { 0, FOPEN_MAX - 3, usual };
static struct glue *lastglue = &uglue;
_THREAD_PRIVATE_MUTEX(__sfp_mutex);
-struct __sfileext __sFext[3];
+static struct __sfileext __sFext[3];
FILE __sF[3] = {
std(__SRD, STDIN_FILENO), /* stdin */
std(__SWR, STDOUT_FILENO), /* stdout */