Check M_TRYWAIT as a flag, not a constant, in MBTOM() mbuf allocator

to malloc flag converter.
This commit is contained in:
rwatson 2003-04-10 17:52:10 +00:00
parent d7d4647fba
commit e437fca0bd

View File

@ -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
/*-