summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-09-11 12:42:47 +0000
committerderaadt <deraadt@openbsd.org>2015-09-11 12:42:47 +0000
commit7db392d8e5f02ded278a11c225bfe6e995d70fbc (patch)
treea809a88a8ee03aa85f378e26c3a019ef4fbf4b1e /lib/libc
parentSyslog does not need the global list of TCP clients, libevent handles (diff)
downloadwireguard-openbsd-7db392d8e5f02ded278a11c225bfe6e995d70fbc.tar.xz
wireguard-openbsd-7db392d8e5f02ded278a11c225bfe6e995d70fbc.zip
Put a private copy of the ypresp_allfn/ypresp_data interface into ypserv
(which uses it in a strange way..) thereby making it possible to static the interface in libc. ok guenther
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/Symbols.list2
-rw-r--r--lib/libc/yp/yp_all.c5
-rw-r--r--lib/libc/yp/ypinternal.h5
3 files changed, 5 insertions, 7 deletions
diff --git a/lib/libc/Symbols.list b/lib/libc/Symbols.list
index 5f3c4b6ac6d..c5f9988e6e4 100644
--- a/lib/libc/Symbols.list
+++ b/lib/libc/Symbols.list
@@ -1687,5 +1687,3 @@ yperr_string
ypprot_err
_yp_check /* chpass, passwd, login_chpass */
yp_unbind /* passwd */
-ypresp_allfn /* ypserv */
-ypresp_data /* ypserv */
diff --git a/lib/libc/yp/yp_all.c b/lib/libc/yp/yp_all.c
index 35398acafdc..24333d8016d 100644
--- a/lib/libc/yp/yp_all.c
+++ b/lib/libc/yp/yp_all.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yp_all.c,v 1.11 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: yp_all.c,v 1.12 2015/09/11 12:42:47 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com>
* All rights reserved.
@@ -36,6 +36,9 @@
#include <rpcsvc/ypclnt.h>
#include "ypinternal.h"
+static int (*ypresp_allfn)(u_long, char *, int, char *, int, void *);
+static void *ypresp_data;
+
bool_t
xdr_ypresp_all_seq(XDR *xdrs, u_long *objp)
{
diff --git a/lib/libc/yp/ypinternal.h b/lib/libc/yp/ypinternal.h
index 8767a830533..6eabf9153a1 100644
--- a/lib/libc/yp/ypinternal.h
+++ b/lib/libc/yp/ypinternal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypinternal.h,v 1.8 2015/01/14 23:36:16 deraadt Exp $ */
+/* $OpenBSD: ypinternal.h,v 1.9 2015/09/11 12:42:47 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
@@ -44,9 +44,6 @@ struct dom_binding {
#define BINDINGDIR "/var/yp/binding"
#define YPBINDLOCK "/var/run/ypbind.lock"
-int (*ypresp_allfn)(u_long, char *, int, char *, int, void *);
-void *ypresp_data;
-
extern struct dom_binding *_ypbindlist;
extern char _yp_domain[HOST_NAME_MAX+1];
extern int _yplib_timeout;