From 29f0bf547877cfc808c522a078f04e7dd26aacc5 Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Wed, 19 Jun 1996 01:08:58 +0000 Subject: [PATCH] Use irq_tok() instead of num_tok() for IRQ's. This will allow us to use the '?' (undefined) token for stating IRQ's in the driver config line. This will allow the card to automatically select and unused IRQ when that code is enabled. --- usr.sbin/pccard/pccardd/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pccard/pccardd/file.c b/usr.sbin/pccard/pccardd/file.c index 8f1c285c274..0e11ca1a4a0 100644 --- a/usr.sbin/pccard/pccardd/file.c +++ b/usr.sbin/pccard/pccardd/file.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: file.c,v 1.5 1996/06/18 19:52:29 nate Exp $ + * $Id: file.c,v 1.6 1996/06/18 23:50:51 nate Exp $ */ #include #include @@ -184,7 +184,7 @@ parse_card(void) confp = xmalloc(sizeof(*confp)); man = next_tok(); confp->driver = new_driver(man); - confp->irq = num_tok(); + confp->irq = irq_tok(1); confp->flags = num_tok(); if (confp->flags == -1) { pusht = 1;