Long overdue, keep up with mbuf.h,v 1.148.
This commit is contained in:
parent
aeffcba3c1
commit
2319835713
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148644
@ -268,10 +268,9 @@ malloc(unsigned long size, struct malloc_type *mtp, int flags)
|
||||
|
||||
#ifdef INVARIANTS
|
||||
/*
|
||||
* To make sure that WAITOK or NOWAIT is set, but not more than
|
||||
* one, and check against the API botches that are common.
|
||||
* Check that exactly one of M_WAITOK or M_NOWAIT is specified.
|
||||
*/
|
||||
indx = flags & (M_WAITOK | M_NOWAIT | M_DONTWAIT | M_TRYWAIT);
|
||||
indx = flags & (M_WAITOK | M_NOWAIT);
|
||||
if (indx != M_NOWAIT && indx != M_WAITOK) {
|
||||
static struct timeval lasterr;
|
||||
static int curerr, once;
|
||||
|
Loading…
Reference in New Issue
Block a user