aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-05-09 23:39:19 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-05-10 13:05:42 +1200
commit2ce1caae3212b12f794cd61d65d4f3d39a370cd9 (patch)
tree2bf1c6b0f5bc8736a9e387ca8f3ec4784fc83444 /man3
parent3126777905f7ddd61fd3e3fadcdc5829792da091 (diff)
downloadman-pages-2ce1caae3212b12f794cd61d65d4f3d39a370cd9.tar.gz
xdr.3: SYNOPSIS: Fix prototype types
Use the same types glibc uses, and add a missing 'const'. .../glibc$ grep_glibc_prototype xdr_union sunrpc/rpc/xdr.h:315: extern bool_t xdr_union (XDR *__xdrs, enum_t *__dscmp, char *__unp, const struct xdr_discrim *__choices, xdrproc_t __dfault) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/xdr.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/xdr.3 b/man3/xdr.3
index ea63597878..83f668dc93 100644
--- a/man3/xdr.3
+++ b/man3/xdr.3
@@ -460,8 +460,8 @@ integers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.PP
.nf
-.BI "bool_t xdr_union(XDR *" xdrs ", int *" dscmp ", char *" unp ,
-.BI " struct xdr_discrim *" choices ,
+.BI "bool_t xdr_union(XDR *" xdrs ", enum_t *" dscmp ", char *" unp ,
+.BI " const struct xdr_discrim *" choices ,
.BI " xdrproc_t " defaultarm "); /* may equal NULL */"
.fi
.IP