aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/xdr
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-04-28 15:18:50 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-04-28 15:18:50 +0000
commitf249dbcc7149848de00cd8f4e93fe140dfa3f219 (patch)
treed7c3c2d08e4ff1d59c15bcb1a7ee8e74f001cb1d /lib/libc/xdr
parent6c28b67b1e004e45f13067a61ca68a011848b065 (diff)
Notes
Diffstat (limited to 'lib/libc/xdr')
-rw-r--r--lib/libc/xdr/xdr.c6
-rw-r--r--lib/libc/xdr/xdr_rec.c10
2 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/xdr/xdr.c b/lib/libc/xdr/xdr.c
index fcb1a519458c8..16a8a1a94c5a8 100644
--- a/lib/libc/xdr/xdr.c
+++ b/lib/libc/xdr/xdr.c
@@ -78,7 +78,7 @@ static const char xdr_zero[BYTES_PER_XDR_UNIT] = { 0, 0, 0, 0 };
void
xdr_free(proc, objp)
xdrproc_t proc;
- char *objp;
+ void *objp;
{
XDR x;
@@ -90,9 +90,7 @@ xdr_free(proc, objp)
* XDR nothing
*/
bool_t
-xdr_void(/* xdrs, addr */)
- /* XDR *xdrs; */
- /* caddr_t addr; */
+xdr_void(void)
{
return (TRUE);
diff --git a/lib/libc/xdr/xdr_rec.c b/lib/libc/xdr/xdr_rec.c
index 3b85c00dc4723..b969d6fcbad5b 100644
--- a/lib/libc/xdr/xdr_rec.c
+++ b/lib/libc/xdr/xdr_rec.c
@@ -110,7 +110,7 @@ typedef struct rec_strm {
/*
* out-goung bits
*/
- int (*writeit)(char *, char *, int);
+ int (*writeit)(void *, void *, int);
char *out_base; /* output buffer (points to frag header) */
char *out_finger; /* next output position */
char *out_boundry; /* data cannot up to this address */
@@ -119,7 +119,7 @@ typedef struct rec_strm {
/*
* in-coming bits
*/
- int (*readit)(char *, char *, int);
+ int (*readit)(void *, void *, int);
u_long in_size; /* fixed size of the input buffer */
char *in_base;
char *in_finger; /* location of next byte to be had */
@@ -152,11 +152,11 @@ xdrrec_create(xdrs, sendsize, recvsize, tcp_handle, readit, writeit)
XDR *xdrs;
u_int sendsize;
u_int recvsize;
- char *tcp_handle;
+ void *tcp_handle;
/* like read, but pass it a tcp_handle, not sock */
- int (*readit)(char *, char *, int);
+ int (*readit)(void *, void *, int);
/* like write, but pass it a tcp_handle, not sock */
- int (*writeit)(char *, char *, int);
+ int (*writeit)(void *, void *, int);
{
RECSTREAM *rstrm = mem_alloc(sizeof(RECSTREAM));