diff options
Diffstat (limited to 'src/lib/rpc/xdr_stdio.c')
-rw-r--r-- | src/lib/rpc/xdr_stdio.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/rpc/xdr_stdio.c b/src/lib/rpc/xdr_stdio.c index 471d9f2ee..9b2a59092 100644 --- a/src/lib/rpc/xdr_stdio.c +++ b/src/lib/rpc/xdr_stdio.c @@ -6,23 +6,23 @@ * may copy or modify Sun RPC without charge, but are not authorized * to license or distribute it to anyone else except as part of a product or * program developed by the user. - * + * * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * + * * Sun RPC is provided with no support and without any obligation on the * part of Sun Microsystems, Inc. to assist in its use, correction, * modification or enhancement. - * + * * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC * OR ANY PART THEREOF. - * + * * In no event will Sun Microsystems, Inc. be liable for any lost revenue * or profits or other special, indirect and consequential damages, even if * Sun has been advised of the possibility of such damages. - * + * * Sun Microsystems, Inc. * 2550 Garcia Avenue * Mountain View, California 94043 @@ -122,7 +122,7 @@ static bool_t xdrstdio_getbytes(XDR *xdrs, caddr_t addr, u_int len) { - if ((len != 0) && (fread(addr, (size_t)len, 1, + if ((len != 0) && (fread(addr, (size_t)len, 1, (FILE *)xdrs->x_private) != 1)) return (FALSE); return (TRUE); @@ -132,7 +132,7 @@ static bool_t xdrstdio_putbytes(XDR *xdrs, caddr_t addr, u_int len) { - if ((len != 0) && (fwrite(addr, (size_t)len, 1, + if ((len != 0) && (fwrite(addr, (size_t)len, 1, (FILE *)xdrs->x_private) != 1)) return (FALSE); return (TRUE); @@ -147,7 +147,7 @@ xdrstdio_getpos(XDR *xdrs) static bool_t xdrstdio_setpos(XDR *xdrs, u_int pos) -{ +{ return ((fseek((FILE *)xdrs->x_private, (long)pos, 0) < 0) ? FALSE : TRUE); |