Don't match if nintr > 12 (more than 3 cells).

This commit is contained in:
tsubai 2000-11-03 12:26:06 +00:00
parent bcb05a2f55
commit 3d213115f4

View File

@ -1,4 +1,4 @@
/* $NetBSD: awacs.c,v 1.1 2000/08/25 12:44:42 tsubai Exp $ */ /* $NetBSD: awacs.c,v 1.2 2000/11/03 12:26:06 tsubai Exp $ */
/*- /*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved. * Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@ -208,6 +208,10 @@ awacs_match(parent, match, aux)
if (ca->ca_nreg < 24 || ca->ca_nintr < 12) if (ca->ca_nreg < 24 || ca->ca_nintr < 12)
return 0; return 0;
/* XXX for now */
if (ca->ca_nintr > 12)
return 0;
return 1; return 1;
} }