summaryrefslogtreecommitdiffstats
path: root/sys/netncp
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-01-21 08:56:16 +0000
committeralfred <alfred@FreeBSD.org>2003-01-21 08:56:16 +0000
commitbf8e8a6e8f0bd9165109f0a258730dd242299815 (patch)
treef16a2fb9fa7a7fbc4c19e981d278d5f6eb53234d /sys/netncp
parent2180deee00350fff613a1d1d1328eddc4c0ba9c8 (diff)
downloadFreeBSD-src-bf8e8a6e8f0bd9165109f0a258730dd242299815.zip
FreeBSD-src-bf8e8a6e8f0bd9165109f0a258730dd242299815.tar.gz
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Diffstat (limited to 'sys/netncp')
-rw-r--r--sys/netncp/ncp_conn.c4
-rw-r--r--sys/netncp/ncp_rq.c2
-rw-r--r--sys/netncp/ncp_sock.c2
-rw-r--r--sys/netncp/ncp_subr.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/sys/netncp/ncp_conn.c b/sys/netncp/ncp_conn.c
index 14b8d7b..a3dbec3 100644
--- a/sys/netncp/ncp_conn.c
+++ b/sys/netncp/ncp_conn.c
@@ -233,7 +233,7 @@ ncp_conn_alloc(struct ncp_conn_args *cap, struct proc *p, struct ucred *cred,
} else
owner = crhold(cred);
MALLOC(ncp, struct ncp_conn *, sizeof(struct ncp_conn),
- M_NCPDATA, M_WAITOK | M_ZERO);
+ M_NCPDATA, M_ZERO);
error = 0;
lockinit(&ncp->nc_lock, PZERO, "ncplck", 0, 0);
ncp_conn_cnt++;
@@ -522,7 +522,7 @@ ncp_conn_gethandle(struct ncp_conn *conn, struct proc *p, struct ncp_handle **ha
return 0;
}
MALLOC(refp,struct ncp_handle *,sizeof(struct ncp_handle),M_NCPDATA,
- M_WAITOK | M_ZERO);
+ M_ZERO);
SLIST_INSERT_HEAD(&lhlist,refp,nh_next);
refp->nh_ref++;
refp->nh_proc = p;
diff --git a/sys/netncp/ncp_rq.c b/sys/netncp/ncp_rq.c
index ea70731..80d2fd0 100644
--- a/sys/netncp/ncp_rq.c
+++ b/sys/netncp/ncp_rq.c
@@ -63,7 +63,7 @@ ncp_rq_alloc_any(u_int32_t ptype, u_int8_t fn, struct ncp_conn *ncp,
struct ncp_rq *rqp;
int error;
- MALLOC(rqp, struct ncp_rq *, sizeof(*rqp), M_NCPRQ, M_WAITOK);
+ MALLOC(rqp, struct ncp_rq *, sizeof(*rqp), M_NCPRQ, 0);
error = ncp_rq_init_any(rqp, ptype, fn, ncp, p, cred);
rqp->nr_flags |= NCPR_ALLOCED;
if (error) {
diff --git a/sys/netncp/ncp_sock.c b/sys/netncp/ncp_sock.c
index 4a03565..d9351e5 100644
--- a/sys/netncp/ncp_sock.c
+++ b/sys/netncp/ncp_sock.c
@@ -163,7 +163,7 @@ ncp_sock_send(struct socket *so, struct mbuf *top, struct ncp_rq *rqp)
int sendwait;
for(;;) {
- m = m_copym(top, 0, M_COPYALL, M_TRYWAIT);
+ m = m_copym(top, 0, M_COPYALL, 0);
/* NCPDDEBUG(m);*/
error = so->so_proto->pr_usrreqs->pru_sosend(so, to, 0, m, 0, flags, p);
if (error == 0 || error == EINTR || error == ENETDOWN)
diff --git a/sys/netncp/ncp_subr.c b/sys/netncp/ncp_subr.c
index a55e535..4f7e5f0 100644
--- a/sys/netncp/ncp_subr.c
+++ b/sys/netncp/ncp_subr.c
@@ -69,7 +69,7 @@ ncp_str_dup(char *s) {
len++;
if (bt == 0) break;
}
- MALLOC(p, char*, len, M_NCPDATA, M_WAITOK);
+ MALLOC(p, char*, len, M_NCPDATA, 0);
copyin(s, p, len);
return p;
}
OpenPOWER on IntegriCloud