summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-08-27 04:37:10 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-08-27 04:37:10 +0000
commit3f43515896b874f5a14e9f9ecb0f5a81ee36c1ac (patch)
tree61b4a7fdb78f64f4fc86d6c9a0522e0bc711f9d2 /include
parentbeb50e1c8dd60e053bc56c0c260ee76dffa3d996 (diff)
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 'include')
-rw-r--r--include/db.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/db.h b/include/db.h
index 332452e5b19..2f1dbe5723e 100644
--- a/include/db.h
+++ b/include/db.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db.h,v 1.9 2012/12/05 23:19:57 deraadt Exp $ */
+/* $OpenBSD: db.h,v 1.10 2015/08/27 04:37:09 guenther Exp $ */
/* $NetBSD: db.h,v 1.13 1994/10/26 00:55:48 cgd Exp $ */
/*-
@@ -207,12 +207,14 @@ typedef struct {
__BEGIN_DECLS
DB *dbopen(const char *, int, int, DBTYPE, const void *);
+__END_DECLS
#ifdef __DBINTERFACE_PRIVATE
+__BEGIN_HIDDEN_DECLS
DB *__bt_open(const char *, int, int, const BTREEINFO *, int);
DB *__hash_open(const char *, int, int, const HASHINFO *, int);
DB *__rec_open(const char *, int, int, const RECNOINFO *, int);
void __dbpanic(DB *dbp);
+__END_HIDDEN_DECLS
#endif
-__END_DECLS
#endif /* !_DB_H_ */