Check M_TRYWAIT as a flag, not a constant, in MBTOM() mbuf allocator
to malloc flag converter.
This commit is contained in:
parent
a0ddbf497b
commit
854e7ea788
@ -272,7 +272,7 @@ struct mbstat {
|
||||
#define M_DONTWAIT 0x4 /* don't conflict with M_NOWAIT */
|
||||
#define M_TRYWAIT 0x8 /* or M_WAITOK */
|
||||
#define M_WAIT M_TRYWAIT /* XXX: Deprecated. */
|
||||
#define MBTOM(how) ((how) == M_TRYWAIT ? M_WAITOK : M_NOWAIT)
|
||||
#define MBTOM(how) ((how) & M_TRYWAIT ? M_WAITOK : M_NOWAIT)
|
||||
|
||||
#ifdef _KERNEL
|
||||
/*-
|
||||
|
Loading…
Reference in New Issue
Block a user