Am I smoking crack? Correct stupid, wrong ASSERT -> if conversion and make

it do what I had in mind.

Noticed by:	glebius
Pointyhat to:	me, myself and mlaier
This commit is contained in:
mlaier 2004-12-02 15:47:15 +00:00
parent a15559cbac
commit 149f3727de

View File

@ -170,7 +170,7 @@ net_add_domain(void *data)
("attempt to net_add_domain(%s) before domaininit()",
dp->dom_name));
#ifndef INVARIANTS
if (domain_init_status == 0)
if (domain_init_status < 1)
printf("WARNING: attempt to net_add_domain(%s) before "
"domaininit()\n", dp->dom_name);
#endif
@ -179,7 +179,7 @@ net_add_domain(void *data)
("attempt to net_add_domain(%s) after domainfinalize()",
dp->dom_name));
#else
if (domain_init_status != 0)
if (domain_init_status >= 2)
printf("WARNING: attempt to net_add_domain(%s) after "
"domainfinalize()\n", dp->dom_name);
#endif