openbsd-ports/security/nfsshell/patches/patch-nfs_prot_xdr_c
2007-10-26 21:38:24 +00:00

40 lines
1.5 KiB
Plaintext

$OpenBSD: patch-nfs_prot_xdr_c,v 1.1 2007/10/26 21:38:24 jasper Exp $
--- nfs_prot_xdr.c.orig Tue May 19 16:55:27 1998
+++ nfs_prot_xdr.c Fri Oct 26 23:32:30 2007
@@ -62,7 +62,7 @@ xdr_fattr(register XDR *xdrs, fattr *objp)
if (xdrs->x_op == XDR_ENCODE) {
if (!xdr_ftype(xdrs, &objp->type))
return (FALSE);
- buf = XDR_INLINE(xdrs, 10 * BYTES_PER_XDR_UNIT);
+ buf = (long *)XDR_INLINE(xdrs, 10 * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_u_int(xdrs, &objp->mode))
return (FALSE);
@@ -107,7 +107,7 @@ xdr_fattr(register XDR *xdrs, fattr *objp)
} else if (xdrs->x_op == XDR_DECODE) {
if (!xdr_ftype(xdrs, &objp->type))
return (FALSE);
- buf = XDR_INLINE(xdrs, 10 * BYTES_PER_XDR_UNIT);
+ buf = (long *)XDR_INLINE(xdrs, 10 * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_u_int(xdrs, &objp->mode))
return (FALSE);
@@ -516,7 +516,7 @@ xdr_statfsokres(register XDR *xdrs, statfsokres *objp)
if (xdrs->x_op == XDR_ENCODE) {
- buf = XDR_INLINE(xdrs, 5 * BYTES_PER_XDR_UNIT);
+ buf = (long *)XDR_INLINE(xdrs, 5 * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_u_int(xdrs, &objp->tsize))
return (FALSE);
@@ -537,7 +537,7 @@ xdr_statfsokres(register XDR *xdrs, statfsokres *objp)
}
return (TRUE);
} else if (xdrs->x_op == XDR_DECODE) {
- buf = XDR_INLINE(xdrs, 5 * BYTES_PER_XDR_UNIT);
+ buf = (long *)XDR_INLINE(xdrs, 5 * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_u_int(xdrs, &objp->tsize))
return (FALSE);