diff options
Diffstat (limited to 'lib/libc/xdr/xdr_rec.c')
-rw-r--r-- | lib/libc/xdr/xdr_rec.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/libc/xdr/xdr_rec.c b/lib/libc/xdr/xdr_rec.c index 616dbf6..3ab2667 100644 --- a/lib/libc/xdr/xdr_rec.c +++ b/lib/libc/xdr/xdr_rec.c @@ -67,15 +67,15 @@ static char *rcsid = "$FreeBSD$"; #include <rpc/xdr.h> #include "un-namespace.h" -static bool_t xdrrec_getlong __P((XDR *, long *)); -static bool_t xdrrec_putlong __P((XDR *, const long *)); -static bool_t xdrrec_getbytes __P((XDR *, char *, u_int)); +static bool_t xdrrec_getlong(XDR *, long *); +static bool_t xdrrec_putlong(XDR *, const long *); +static bool_t xdrrec_getbytes(XDR *, char *, u_int); -static bool_t xdrrec_putbytes __P((XDR *, const char *, u_int)); -static u_int xdrrec_getpos __P((XDR *)); -static bool_t xdrrec_setpos __P((XDR *, u_int)); -static int32_t *xdrrec_inline __P((XDR *, u_int)); -static void xdrrec_destroy __P((XDR *)); +static bool_t xdrrec_putbytes(XDR *, const char *, u_int); +static u_int xdrrec_getpos(XDR *); +static bool_t xdrrec_setpos(XDR *, u_int); +static int32_t *xdrrec_inline(XDR *, u_int); +static void xdrrec_destroy(XDR *); static const struct xdr_ops xdrrec_ops = { xdrrec_getlong, @@ -109,7 +109,7 @@ typedef struct rec_strm { /* * out-goung bits */ - int (*writeit) __P((char *, char *, int)); + int (*writeit)(char *, char *, 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 */ @@ -118,7 +118,7 @@ typedef struct rec_strm { /* * in-coming bits */ - int (*readit) __P((char *, char *, int)); + int (*readit)(char *, char *, int); u_long in_size; /* fixed size of the input buffer */ char *in_base; char *in_finger; /* location of next byte to be had */ @@ -129,12 +129,12 @@ typedef struct rec_strm { u_int recvsize; } RECSTREAM; -static u_int fix_buf_size __P((u_int)); -static bool_t flush_out __P((RECSTREAM *, bool_t)); -static bool_t fill_input_buf __P((RECSTREAM *)); -static bool_t get_input_bytes __P((RECSTREAM *, char *, int)); -static bool_t set_input_fragment __P((RECSTREAM *)); -static bool_t skip_input_bytes __P((RECSTREAM *, long)); +static u_int fix_buf_size(u_int); +static bool_t flush_out(RECSTREAM *, bool_t); +static bool_t fill_input_buf(RECSTREAM *); +static bool_t get_input_bytes(RECSTREAM *, char *, int); +static bool_t set_input_fragment(RECSTREAM *); +static bool_t skip_input_bytes(RECSTREAM *, long); /* @@ -153,9 +153,9 @@ xdrrec_create(xdrs, sendsize, recvsize, tcp_handle, readit, writeit) u_int recvsize; char *tcp_handle; /* like read, but pass it a tcp_handle, not sock */ - int (*readit) __P((char *, char *, int)); + int (*readit)(char *, char *, int); /* like write, but pass it a tcp_handle, not sock */ - int (*writeit) __P((char *, char *, int)); + int (*writeit)(char *, char *, int); { RECSTREAM *rstrm = mem_alloc(sizeof(RECSTREAM)); |