summaryrefslogtreecommitdiff
path: root/lib/libc/yp
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-28 14:51:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-28 14:51:05 +0000
commitfb17be38533d13645e680b8fef4001b1b223d218 (patch)
treea81e1857fbec1e99ec16088553ae8d0d48eabc55 /lib/libc/yp
parent0c14285e2cc3f02b701ca9557df24b35d43864dc (diff)
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
Diffstat (limited to 'lib/libc/yp')
-rw-r--r--lib/libc/yp/yp_all.c8
1 files changed, 4 insertions, 4 deletions
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);