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

to malloc flag converter.
This commit is contained in:
Robert Watson 2003-04-10 17:52:10 +00:00
parent a0ddbf497b
commit 854e7ea788
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113341

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