From edbdb2e76bf1a8ba9a1ebb0ba1b13b22881dda07 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 17 Oct 2007 01:32:47 +0000 Subject: use NULL to point to the response buffer, which avoids confusion; ok fgsch --- sys/dev/pckbc/pms_intelli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/pckbc/pms_intelli.c') diff --git a/sys/dev/pckbc/pms_intelli.c b/sys/dev/pckbc/pms_intelli.c index da9accf0a06..c6409c40646 100644 --- a/sys/dev/pckbc/pms_intelli.c +++ b/sys/dev/pckbc/pms_intelli.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms_intelli.c,v 1.1 2007/08/01 12:16:59 kettenis Exp $ */ +/* $OpenBSD: pms_intelli.c,v 1.2 2007/10/17 01:32:46 deraadt Exp $ */ /* $NetBSD: psm_intelli.c,v 1.8 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -84,7 +84,7 @@ pmsi_setintellimode(tag, slot) cmd[0] = PMS_SET_SAMPLE; for (i = 0; i < 3; i++) { cmd[1] = rates[i]; - res = pckbc_poll_cmd(tag, slot, cmd, 2, 0, 0, 0); + res = pckbc_poll_cmd(tag, slot, cmd, 2, 0, NULL, 0); if (res) return (res); } @@ -203,7 +203,7 @@ pmsiattach(parent, self, aux) /* no interrupts until enabled */ cmd[0] = PMS_DEV_DISABLE; - res = pckbc_poll_cmd(pa->pa_tag, pa->pa_slot, cmd, 1, 0, 0, 0); + res = pckbc_poll_cmd(pa->pa_tag, pa->pa_slot, cmd, 1, 0, NULL, 0); if (res) printf("pmsiattach: disable error\n"); pckbc_slot_enable(sc->sc_kbctag, sc->sc_kbcslot, 0); -- cgit v1.2.3