[BACK]Return to krpc_subr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / nfs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/nfs/krpc_subr.c between version 1.22 and 1.23

version 1.22, 1998/03/01 02:24:27 version 1.23, 1998/08/09 21:19:49
Line 278  krpc_call(sa, prog, vers, func, data, fr
Line 278  krpc_call(sa, prog, vers, func, data, fr
          */           */
         nam = m_get(M_WAIT, MT_SONAME);          nam = m_get(M_WAIT, MT_SONAME);
         sin = mtod(nam, struct sockaddr_in *);          sin = mtod(nam, struct sockaddr_in *);
         bcopy((caddr_t)sa, (caddr_t)sin,          memcpy((caddr_t)sin, (caddr_t)sa,
                   (nam->m_len = sa->sin_len));                    (nam->m_len = sa->sin_len));
   
         /*          /*
Line 288  krpc_call(sa, prog, vers, func, data, fr
Line 288  krpc_call(sa, prog, vers, func, data, fr
         mhead->m_next = *data;          mhead->m_next = *data;
         call = mtod(mhead, struct rpc_call *);          call = mtod(mhead, struct rpc_call *);
         mhead->m_len = sizeof(*call);          mhead->m_len = sizeof(*call);
         bzero((caddr_t)call, sizeof(*call));          memset((caddr_t)call, 0, sizeof(*call));
         /* rpc_call part */          /* rpc_call part */
         xid++;          xid++;
         call->rp_xid = txdr_unsigned(xid);          call->rp_xid = txdr_unsigned(xid);
Line 432  xdr_string_encode(str, len)
Line 432  xdr_string_encode(str, len)
         xs = mtod(m, struct xdr_string *);          xs = mtod(m, struct xdr_string *);
         m->m_len = mlen;          m->m_len = mlen;
         xs->len = txdr_unsigned(len);          xs->len = txdr_unsigned(len);
         bcopy(str, xs->data, len);          memcpy(xs->data, str, len);
         return (m);          return (m);
 }  }
   

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

CVSweb <webmaster@jp.NetBSD.org>