- Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.

Spotted by: bde
This commit is contained in:
Andrew R. Reiter 2001-12-09 17:48:08 +00:00
parent 18a85de04b
commit d49d0ca7fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87565
3 changed files with 3 additions and 3 deletions

View File

@ -1540,7 +1540,7 @@ do { \
if (in6p->in6p_options) {
struct mbuf *m;
m = m_copym(in6p->in6p_options,
0, M_COPYALL, M_WAIT);
0, M_COPYALL, M_TRYWAIT);
error = soopt_mcopyout(sopt, m);
if (error == 0)
m_freem(m);

View File

@ -247,7 +247,7 @@ smb_iod_sendrq(struct smbiod *iod, struct smb_rq *rqp)
}
SMBSDEBUG("M:%04x, P:%04x, U:%04x, T:%04x\n", rqp->sr_mid, 0, 0, 0);
m_dumpm(rqp->sr_rq.mb_top);
m = m_copym(rqp->sr_rq.mb_top, 0, M_COPYALL, M_WAIT);
m = m_copym(rqp->sr_rq.mb_top, 0, M_COPYALL, M_TRYWAIT);
error = rqp->sr_lerror = m ? SMB_TRAN_SEND(vcp, m, td) : ENOBUFS;
if (error == 0) {
getnanotime(&rqp->sr_timesent);

View File

@ -414,7 +414,7 @@ smb_t2_placedata(struct mbuf *mtop, u_int16_t offset, u_int16_t count,
struct mbuf *m, *m0;
int len;
m0 = m_split(mtop, offset, M_WAIT);
m0 = m_split(mtop, offset, M_TRYWAIT);
if (m0 == NULL)
return EBADRPC;
for(len = 0, m = m0; m->m_next; m = m->m_next)