summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr/xdr_rec.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/xdr/xdr_rec.c')
-rw-r--r--lib/libc/xdr/xdr_rec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/xdr/xdr_rec.c b/lib/libc/xdr/xdr_rec.c
index 3b85c00..b969d6f 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));
OpenPOWER on IntegriCloud