diff options
Diffstat (limited to 'services/librpc/src/xdr/xdr_rec.c')
-rw-r--r-- | services/librpc/src/xdr/xdr_rec.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/services/librpc/src/xdr/xdr_rec.c b/services/librpc/src/xdr/xdr_rec.c index 7e47527d..5b4d5b9d 100644 --- a/services/librpc/src/xdr/xdr_rec.c +++ b/services/librpc/src/xdr/xdr_rec.c @@ -53,6 +53,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/xdr/xdr_rec.c,v 1.12 2000/01/19 06: #include "config.h" #endif +#include <freebsd/bsd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -145,9 +146,9 @@ xdrrec_create( XDR *xdrs, u_int sendsize, u_int recvsize, - caddr_t tcp_handle, - int (*readit)(char*, char*, int), /* like read, but pass it a tcp_handle, not sock */ - int (*writeit)(char*, char*, int) /* like write, but pass it a tcp_handle, not sock */ + void *tcp_handle, + int (*readit)(void*, void*, int), /* like read, but pass it a tcp_handle, not sock */ + int (*writeit)(void*, void*, int) /* like write, but pass it a tcp_handle, not sock */ ) { RECSTREAM *rstrm = @@ -466,7 +467,7 @@ xdrrec_eof( bool_t xdrrec_endofrecord( XDR *xdrs, - bool_t sendnow) + int sendnow) { RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private); u_long len; /* fragment length */ |