diff options
author | 2015-09-28 14:51:04 +0000 | |
---|---|---|
committer | 2015-09-28 14:51:04 +0000 | |
commit | 81420c00e51c7e40b4480db248eb756b8ddd774a (patch) | |
tree | fb916a884963ab104dfec36c8fc13c5f82fa8887 | |
parent | sync (diff) | |
download | wireguard-openbsd-81420c00e51c7e40b4480db248eb756b8ddd774a.tar.xz wireguard-openbsd-81420c00e51c7e40b4480db248eb756b8ddd774a.zip |
xdr_ypresp_all_seq() does not need to be exported by libc, we can make it
local static. (Does not need to be exported by librpcsvc either, since it
is pre-rpcgen and simply %-commented). A few callers use this via
yp_all() -- that interface remains untouched.
ports trawl by sthen
guenther watched me gnash my teeth in croatia
-rw-r--r-- | lib/libc/Symbols.list | 1 | ||||
-rw-r--r-- | lib/libc/yp/yp_all.c | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/Symbols.list b/lib/libc/Symbols.list index 900cdd2b347..6d68c527579 100644 --- a/lib/libc/Symbols.list +++ b/lib/libc/Symbols.list @@ -1662,7 +1662,6 @@ uuid_is_nil uuid_to_string /* yp */ -xdr_ypresp_all_seq yp_all yp_bind yp_first diff --git a/lib/libc/yp/yp_all.c b/lib/libc/yp/yp_all.c index 24333d8016d..014cc51568e 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.12 2015/09/11 12:42:47 deraadt Exp $ */ +/* $OpenBSD: yp_all.c,v 1.13 2015/09/28 14:51:04 deraadt Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com> * All rights reserved. @@ -39,8 +39,8 @@ 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) +static bool_t +_xdr_ypresp_all_seq(XDR *xdrs, u_long *objp) { struct ypresp_all out; u_long status; @@ -132,7 +132,7 @@ yp_all(const char *indomain, const char *inmap, struct ypall_callback *incallbac ypresp_data = (void *) incallback->data; (void) clnt_call(clnt, YPPROC_ALL, - xdr_ypreq_nokey, &yprnk, xdr_ypresp_all_seq, &status, tv); + xdr_ypreq_nokey, &yprnk, _xdr_ypresp_all_seq, &status, tv); clnt_destroy(clnt); if (status != YP_FALSE) r = ypprot_err(status); |