Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/rpc appease lint casts



details:   https://anonhg.NetBSD.org/src/rev/393e97e3a8e3
branches:  trunk
changeset: 500927:393e97e3a8e3
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 20 20:52:50 2000 +0000

description:
appease lint casts

diffstat:

 lib/libc/rpc/clnt_dg.c   |  4 ++--
 lib/libc/rpc/clnt_raw.c  |  6 +++---
 lib/libc/rpc/clnt_vc.c   |  6 +++---
 lib/libc/rpc/xdr_float.c |  8 ++++----
 4 files changed, 12 insertions(+), 12 deletions(-)

diffs (108 lines):

diff -r c04c588b0cd7 -r 393e97e3a8e3 lib/libc/rpc/clnt_dg.c
--- a/lib/libc/rpc/clnt_dg.c    Wed Dec 20 20:51:08 2000 +0000
+++ b/lib/libc/rpc/clnt_dg.c    Wed Dec 20 20:52:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clnt_dg.c,v 1.4 2000/07/14 08:40:41 fvdl Exp $ */
+/*     $NetBSD: clnt_dg.c,v 1.5 2000/12/20 20:52:50 christos Exp $     */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -351,7 +351,7 @@
         * the transaction is the first thing in the out buffer
         */
        (*(u_int32_t *)(void *)(cu->cu_outbuf))++;
-       if ((! XDR_PUTINT32(xdrs, &proc)) ||
+       if ((! XDR_PUTINT32(xdrs, (int32p)&proc)) ||
            (! AUTH_MARSHALL(cl->cl_auth, xdrs)) ||
            (! (*xargs)(xdrs, argsp))) {
                release_fd_lock(cu->cu_fd, mask);
diff -r c04c588b0cd7 -r 393e97e3a8e3 lib/libc/rpc/clnt_raw.c
--- a/lib/libc/rpc/clnt_raw.c   Wed Dec 20 20:51:08 2000 +0000
+++ b/lib/libc/rpc/clnt_raw.c   Wed Dec 20 20:52:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clnt_raw.c,v 1.20 2000/12/10 04:12:03 christos Exp $   */
+/*     $NetBSD: clnt_raw.c,v 1.21 2000/12/20 20:52:50 christos Exp $   */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char *sccsid = "@(#)clnt_raw.c 1.22 87/08/11 Copyr 1984 Sun Micro";
 static char *sccsid = "@(#)clnt_raw.c  2.2 88/08/01 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: clnt_raw.c,v 1.20 2000/12/10 04:12:03 christos Exp $");
+__RCSID("$NetBSD: clnt_raw.c,v 1.21 2000/12/20 20:52:50 christos Exp $");
 #endif
 #endif
 
@@ -182,7 +182,7 @@
        XDR_SETPOS(xdrs, 0);
        clp->u.mashl_rpcmsg.rm_xid ++ ;
        if ((! XDR_PUTBYTES(xdrs, clp->u.mashl_callmsg, clp->mcnt)) ||
-           (! XDR_PUTINT32(xdrs, &proc)) ||
+           (! XDR_PUTINT32(xdrs, (int32p)&proc)) ||
            (! AUTH_MARSHALL(h->cl_auth, xdrs)) ||
            (! (*xargs)(xdrs, argsp))) {
                return (RPC_CANTENCODEARGS);
diff -r c04c588b0cd7 -r 393e97e3a8e3 lib/libc/rpc/clnt_vc.c
--- a/lib/libc/rpc/clnt_vc.c    Wed Dec 20 20:51:08 2000 +0000
+++ b/lib/libc/rpc/clnt_vc.c    Wed Dec 20 20:52:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clnt_vc.c,v 1.4 2000/07/14 08:40:42 fvdl Exp $ */
+/*     $NetBSD: clnt_vc.c,v 1.5 2000/12/20 20:52:50 christos Exp $     */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -36,7 +36,7 @@
 static char *sccsid = "@(#)clnt_tcp.c  2.2 88/08/01 4.0 RPCSRC";
 static char sccsid[] = "@(#)clnt_vc.c 1.19 89/03/16 Copyr 1988 Sun Micro";
 #else
-__RCSID("$NetBSD: clnt_vc.c,v 1.4 2000/07/14 08:40:42 fvdl Exp $");
+__RCSID("$NetBSD: clnt_vc.c,v 1.5 2000/12/20 20:52:50 christos Exp $");
 #endif
 #endif
  
@@ -366,7 +366,7 @@
        ct->ct_error.re_status = RPC_SUCCESS;
        x_id = ntohl(--(*msg_x_id));
        if ((! XDR_PUTBYTES(xdrs, ct->ct_u.ct_mcallc, ct->ct_mpos)) ||
-           (! XDR_PUTINT32(xdrs, &proc)) ||
+           (! XDR_PUTINT32(xdrs, (int32p)&proc)) ||
            (! AUTH_MARSHALL(h->cl_auth, xdrs)) ||
            (! (*xdr_args)(xdrs, args_ptr))) {
                if (ct->ct_error.re_status == RPC_SUCCESS)
diff -r c04c588b0cd7 -r 393e97e3a8e3 lib/libc/rpc/xdr_float.c
--- a/lib/libc/rpc/xdr_float.c  Wed Dec 20 20:51:08 2000 +0000
+++ b/lib/libc/rpc/xdr_float.c  Wed Dec 20 20:52:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xdr_float.c,v 1.23 2000/07/17 04:59:51 matt Exp $      */
+/*     $NetBSD: xdr_float.c,v 1.24 2000/12/20 20:52:50 christos Exp $  */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char *sccsid = "@(#)xdr_float.c 1.12 87/08/11 Copyr 1984 Sun Micro";
 static char *sccsid = "@(#)xdr_float.c 2.1 88/07/29 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: xdr_float.c,v 1.23 2000/07/17 04:59:51 matt Exp $");
+__RCSID("$NetBSD: xdr_float.c,v 1.24 2000/12/20 20:52:50 christos Exp $");
 #endif
 #endif
 
@@ -123,7 +123,7 @@
 
        case XDR_ENCODE:
 #ifdef IEEEFP
-               return (XDR_PUTINT32(xdrs, (int32_t *)fp));
+               return (XDR_PUTINT32(xdrs, (int32_t *)(void *)fp));
 #else
                vs = *((struct vax_single *)fp);
                for (i = 0, lim = sgl_limits;
@@ -145,7 +145,7 @@
 
        case XDR_DECODE:
 #ifdef IEEEFP
-               return (XDR_GETINT32(xdrs, (int32_t *)fp));
+               return (XDR_GETINT32(xdrs, (int32_t *)(void *)fp));
 #else
                vsp = (struct vax_single *)fp;
                if (!XDR_GETINT32(xdrs, (int32_t *)&is))



Home | Main Index | Thread Index | Old Index