diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2008-12-03 21:44:27 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2008-12-03 21:44:27 +0000 |
commit | b2b1b8bb0d677b8a82c30123fef6213fe5e7e5c6 (patch) | |
tree | b0f2a63c7c33547e35b81804c811111f25a2bc54 | |
parent | fdd64de839cb002b25846e837cdb6db5954a43aa (diff) |
Get size of the struct cardslot_event, not the function cardslot_event.
Found by pcc.
OK deraadt.
-rw-r--r-- | sys/dev/cardbus/cardslot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cardbus/cardslot.c b/sys/dev/cardbus/cardslot.c index 38f57e9ec1a..4b2a83e2858 100644 --- a/sys/dev/cardbus/cardslot.c +++ b/sys/dev/cardbus/cardslot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cardslot.c,v 1.11 2008/11/24 15:50:44 deraadt Exp $ */ +/* $OpenBSD: cardslot.c,v 1.12 2008/12/03 21:44:26 ray Exp $ */ /* $NetBSD: cardslot.c,v 1.9 2000/03/22 09:35:06 haya Exp $ */ /* @@ -108,8 +108,8 @@ cardslotattach(struct device *parent, struct device *self, void *aux) struct pcmcia_softc *psc = NULL; if (cardsloteventpool.pr_align == 0) - pool_init(&cardsloteventpool, sizeof(cardslot_event), 0, 0, 0, - "cardslot", NULL); + pool_init(&cardsloteventpool, sizeof(struct cardslot_event), + 0, 0, 0, "cardslot", NULL); sc->sc_slot = sc->sc_dev.dv_unit; sc->sc_cb_softc = NULL; |