Added casts to fix warnings from the new prototyped rpc headers.

This commit is contained in:
christos 1994-12-08 21:41:05 +00:00
parent 957694159f
commit 89cfd124d5
4 changed files with 15 additions and 15 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)misc_rpc.c 8.1 (Berkeley) 6/6/93
* $Id: misc_rpc.c,v 1.3 1994/06/13 20:47:36 mycroft Exp $
* $Id: misc_rpc.c,v 1.4 1994/12/08 21:41:05 christos Exp $
*/
/*
@ -132,7 +132,7 @@ AUTH *auth;
/*
* Called procedure number
*/
if (!xdr_enum(&msg_xdr, &proc))
if (!xdr_enum(&msg_xdr, (enum_t *) &proc))
return -EIO;
/*
* Authorization

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)amq_xdr.c 8.1 (Berkeley) 6/6/93
* $Id: amq_xdr.c,v 1.2 1994/06/13 20:50:51 mycroft Exp $
* $Id: amq_xdr.c,v 1.3 1994/12/08 21:41:23 christos Exp $
*
*/
@ -63,7 +63,7 @@ xdr_time_type(xdrs, objp)
XDR *xdrs;
time_type *objp;
{
if (!xdr_long(xdrs, objp)) {
if (!xdr_long(xdrs, (long *) objp)) {
return (FALSE);
}
return (TRUE);

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)nfs_prot_svc.c 8.1 (Berkeley) 6/6/93
* $Id: nfs_prot_svc.c,v 1.3 1994/06/13 20:50:57 mycroft Exp $
* $Id: nfs_prot_svc.c,v 1.4 1994/12/08 21:41:25 christos Exp $
*
*/
@ -181,7 +181,7 @@ SVCXPRT *transp;
return;
}
bzero((char *)&argument, sizeof(argument));
if (!svc_getargs(transp, xdr_argument, &argument)) {
if (!svc_getargs(transp, xdr_argument, (caddr_t) &argument)) {
svcerr_decode(transp);
return;
}
@ -189,7 +189,7 @@ SVCXPRT *transp;
if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
svcerr_systemerr(transp);
}
if (!svc_freeargs(transp, xdr_argument, &argument)) {
if (!svc_freeargs(transp, xdr_argument, (caddr_t) &argument)) {
plog(XLOG_FATAL, "unable to free rpc arguments in nfs_program_1");
going_down(1);
}

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)nfs_prot_xdr.c 8.1 (Berkeley) 6/6/93
* $Id: nfs_prot_xdr.c,v 1.2 1994/06/13 20:50:59 mycroft Exp $
* $Id: nfs_prot_xdr.c,v 1.3 1994/12/08 21:41:26 christos Exp $
*
*/
@ -109,7 +109,7 @@ xdr_fattr(xdrs, objp)
XDR *xdrs;
fattr *objp;
{
if (!xdr_ftype(xdrs, &objp->type)) {
if (!xdr_ftype(xdrs, (enum_t *) &objp->type)) {
return (FALSE);
}
if (!xdr_u_int(xdrs, &objp->mode)) {
@ -219,7 +219,7 @@ xdr_attrstat(xdrs, objp)
XDR *xdrs;
attrstat *objp;
{
if (!xdr_nfsstat(xdrs, &objp->status)) {
if (!xdr_nfsstat(xdrs, (enum_t *) &objp->status)) {
return (FALSE);
}
switch (objp->status) {
@ -291,7 +291,7 @@ xdr_diropres(xdrs, objp)
XDR *xdrs;
diropres *objp;
{
if (!xdr_nfsstat(xdrs, &objp->status)) {
if (!xdr_nfsstat(xdrs, (enum_t *) &objp->status)) {
return (FALSE);
}
switch (objp->status) {
@ -312,7 +312,7 @@ xdr_readlinkres(xdrs, objp)
XDR *xdrs;
readlinkres *objp;
{
if (!xdr_nfsstat(xdrs, &objp->status)) {
if (!xdr_nfsstat(xdrs, (enum_t *) &objp->status)) {
return (FALSE);
}
switch (objp->status) {
@ -373,7 +373,7 @@ xdr_readres(xdrs, objp)
XDR *xdrs;
readres *objp;
{
if (!xdr_nfsstat(xdrs, &objp->status)) {
if (!xdr_nfsstat(xdrs, (enum_t *) &objp->status)) {
return (FALSE);
}
switch (objp->status) {
@ -565,7 +565,7 @@ xdr_readdirres(xdrs, objp)
XDR *xdrs;
readdirres *objp;
{
if (!xdr_nfsstat(xdrs, &objp->status)) {
if (!xdr_nfsstat(xdrs, (enum_t *) &objp->status)) {
return (FALSE);
}
switch (objp->status) {
@ -612,7 +612,7 @@ xdr_statfsres(xdrs, objp)
XDR *xdrs;
statfsres *objp;
{
if (!xdr_nfsstat(xdrs, &objp->status)) {
if (!xdr_nfsstat(xdrs, (enum_t *) &objp->status)) {
return (FALSE);
}
switch (objp->status) {