git: a0b3fbe4ccb6 - stable/13 - libc/yp: sort out warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Apr 2023 14:47:22 UTC
The branch stable/13 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=a0b3fbe4ccb6961765d2325bb2ecae6ff2111102
commit a0b3fbe4ccb6961765d2325bb2ecae6ff2111102
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-03-16 18:56:47 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-04-09 14:46:34 +0000
libc/yp: sort out warnings
.. in least-effort manner
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit ba5070ab441f1ad901c0412f531bd646d0bd0616)
---
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;