- Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.
Spotted by: bde
This commit is contained in:
parent
e82cc88ed6
commit
915c6a9163
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user