summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/hash
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/db/hash
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/db/hash')
-rw-r--r--lib/libc/db/hash/extern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/db/hash/extern.h b/lib/libc/db/hash/extern.h
index 7f837ffacbc..3d496169e13 100644
--- a/lib/libc/db/hash/extern.h
+++ b/lib/libc/db/hash/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.7 2003/06/02 20:18:33 millert Exp $ */
+/* $OpenBSD: extern.h,v 1.8 2015/08/27 04:37:09 guenther Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -31,6 +31,7 @@
* @(#)extern.h 8.4 (Berkeley) 6/16/94
*/
+__BEGIN_HIDDEN_DECLS
BUFHEAD *__add_ovflpage(HTAB *, BUFHEAD *);
int __addel(HTAB *, BUFHEAD *, const DBT *, const DBT *);
int __big_delete(HTAB *, BUFHEAD *);
@@ -61,3 +62,4 @@ extern u_int32_t (*__default_hash)(const void *, size_t);
#ifdef HASH_STATISTICS
extern int hash_accesses, hash_collisions, hash_expansions, hash_overflows;
#endif
+__END_HIDDEN_DECLS