git: ba5070ab441f - main - libc/yp: sort out warnings

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Thu, 16 Mar 2023 18:57:13 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=ba5070ab441f1ad901c0412f531bd646d0bd0616

commit ba5070ab441f1ad901c0412f531bd646d0bd0616
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-03-16 18:56:47 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-03-16 18:56:47 +0000

    libc/yp: sort out warnings
    
    .. in least-effort manner
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 lib/libc/yp/xdryp.c | 2 +-
 lib/libc/yp/yplib.c | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/libc/yp/xdryp.c b/lib/libc/yp/xdryp.c
index aa7c7123a04b..da996276aaf8 100644
--- a/lib/libc/yp/xdryp.c
+++ b/lib/libc/yp/xdryp.c
@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
 #include <stdlib.h>
 #include <string.h>
 
-extern int (*ypresp_allfn)();
+extern int (*ypresp_allfn)(u_long, char *, int, char *, int, void *);
 extern void *ypresp_data;
 
 /*
diff --git a/lib/libc/yp/yplib.c b/lib/libc/yp/yplib.c
index 92b57c2512db..c6a30bee1d72 100644
--- a/lib/libc/yp/yplib.c
+++ b/lib/libc/yp/yplib.c
@@ -92,11 +92,7 @@ struct dom_binding {
 #endif
 #define MAX_RETRIES 20
 
-extern bool_t xdr_domainname(), xdr_ypbind_resp();
-extern bool_t xdr_ypreq_key(), xdr_ypresp_val();
-extern bool_t xdr_ypreq_nokey(), xdr_ypresp_key_val();
-extern bool_t xdr_ypresp_all(), xdr_ypresp_all_seq();
-extern bool_t xdr_ypresp_master();
+bool_t xdr_ypresp_all_seq(XDR *xdrs, u_long *objp);
 
 int (*ypresp_allfn)();
 void *ypresp_data;