Avoid using bcopy.
authordrepper <drepper>
Mon, 20 Aug 2001 06:31:54 +0000 (06:31 +0000)
committerdrepper <drepper>
Mon, 20 Aug 2001 06:31:54 +0000 (06:31 +0000)
sunrpc/rpc_cmsg.c

index 3930de3..8916504 100644 (file)
@@ -82,7 +82,7 @@ xdr_callmsg (XDR *xdrs, struct rpc_msg *cmsg)
          IXDR_PUT_INT32 (buf, oa->oa_length);
          if (oa->oa_length)
            {
-             bcopy (oa->oa_base, (caddr_t) buf, oa->oa_length);
+             memcpy ((caddr_t) buf, oa->oa_base, oa->oa_length);
              buf = (int32_t *) ((char *) buf + RNDUP (oa->oa_length));
            }
          oa = &cmsg->rm_call.cb_verf;
@@ -90,7 +90,7 @@ xdr_callmsg (XDR *xdrs, struct rpc_msg *cmsg)
          IXDR_PUT_INT32 (buf, oa->oa_length);
          if (oa->oa_length)
            {
-             bcopy (oa->oa_base, (caddr_t) buf, oa->oa_length);
+             memcpy ((caddr_t) buf, oa->oa_base, oa->oa_length);
              /* no real need....
                 buf = (long *) ((char *) buf + RNDUP(oa->oa_length));
               */
@@ -138,8 +138,7 @@ xdr_callmsg (XDR *xdrs, struct rpc_msg *cmsg)
                }
              else
                {
-                 bcopy ((caddr_t) buf, oa->oa_base,
-                        oa->oa_length);
+                 memcpy (oa->oa_base, (caddr_t) buf, oa->oa_length);
                  /* no real need....
                     buf = (long *) ((char *) buf
                     + RNDUP(oa->oa_length));
@@ -179,8 +178,7 @@ xdr_callmsg (XDR *xdrs, struct rpc_msg *cmsg)
                }
              else
                {
-                 bcopy ((caddr_t) buf, oa->oa_base,
-                        oa->oa_length);
+                 memcpy (oa->oa_base, (caddr_t) buf, oa->oa_length);
                  /* no real need...
                     buf = (long *) ((char *) buf
                     + RNDUP(oa->oa_length));