diff options
author | 2016-05-29 22:42:24 +0000 | |
---|---|---|
committer | 2016-05-29 22:42:24 +0000 | |
commit | 5a1da47d2023ee99d40c76eb4bd44b5c57bfb254 (patch) | |
tree | e26134dd3b23fe61f38946174c033e05fe6097e6 /lib/libc | |
parent | Switch from calling obsolete sig{block,setmask} to directly using the (diff) | |
download | wireguard-openbsd-5a1da47d2023ee99d40c76eb4bd44b5c57bfb254.tar.xz wireguard-openbsd-5a1da47d2023ee99d40c76eb4bd44b5c57bfb254.zip |
_yp_bind(), _ypbindlist, _yp_domain, and _yplib_timeout are no longer
exported, so declare them as hidden to avoid pointless GOT relocations
ok millert@ deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/yp/yp_bind.c | 3 | ||||
-rw-r--r-- | lib/libc/yp/ypinternal.h | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/yp/yp_bind.c b/lib/libc/yp/yp_bind.c index f81974e6f2e..48c639739e3 100644 --- a/lib/libc/yp/yp_bind.c +++ b/lib/libc/yp/yp_bind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yp_bind.c,v 1.26 2015/11/26 07:26:50 deraadt Exp $ */ +/* $OpenBSD: yp_bind.c,v 1.27 2016/05/29 22:42:24 guenther Exp $ */ /* * Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com> * All rights reserved. @@ -257,7 +257,6 @@ _yp_unbind(struct dom_binding *ypb) ypb->dom_client = NULL; ypb->dom_socket = -1; } -DEF_WEAK(_yp_unbind); int yp_bind(const char *dom) diff --git a/lib/libc/yp/ypinternal.h b/lib/libc/yp/ypinternal.h index ea2c6415c8c..8021a84e5a9 100644 --- a/lib/libc/yp/ypinternal.h +++ b/lib/libc/yp/ypinternal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ypinternal.h,v 1.10 2015/09/14 12:09:35 guenther Exp $ */ +/* $OpenBSD: ypinternal.h,v 1.11 2016/05/29 22:42:24 guenther Exp $ */ /* * Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com> @@ -44,12 +44,13 @@ struct dom_binding { #define BINDINGDIR "/var/yp/binding" #define YPBINDLOCK "/var/run/ypbind.lock" +__BEGIN_HIDDEN_DECLS extern struct dom_binding *_ypbindlist; extern char _yp_domain[HOST_NAME_MAX+1]; extern int _yplib_timeout; void _yp_unbind(struct dom_binding *); +__END_HIDDEN_DECLS + int _yp_check(char **); -PROTO_NORMAL(_yp_unbind); PROTO_NORMAL(_yp_check); - |