diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2005-11-15 14:33:30 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2005-11-15 14:33:30 +0000 |
commit | 2b2ba67abf6c2336642f59bd8a97e6ab1607b110 (patch) | |
tree | 65c350ad225db56ad8acb7e85cbda0b9ca1561ff /sys | |
parent | 9a400142cffe890b8de4ba6115b21260136d69eb (diff) |
Undefine STATUS_SUM, because it is not needed, and it makes
bktr(4) work on alpha.
ok mickey@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/bktr/bktr_core.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c index 27d2b1ddb29..67ab7d0a00b 100644 --- a/sys/dev/pci/bktr/bktr_core.c +++ b/sys/dev/pci/bktr/bktr_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_core.c,v 1.17 2005/06/23 14:57:48 robert Exp $ */ +/* $OpenBSD: bktr_core.c,v 1.18 2005/11/15 14:33:29 robert Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */ /* @@ -387,8 +387,10 @@ static const struct { /* debug utility for holding previous INT_STAT contents */ -#define STATUS_SUM +#undef STATUS_SUM +#if defined( STATUS_SUM ) static u_int status_sum = 0; +#endif /* * defines to make certain bit-fiddles understandable @@ -2294,10 +2296,13 @@ tuner_ioctl( bktr_ptr_t bktr, int unit, ioctl_cmd_t cmd, caddr_t arg, struct pro int bktr_common_ioctl( bktr_ptr_t bktr, ioctl_cmd_t cmd, caddr_t arg ) { - int pixfmt; - unsigned int temp; + int pixfmt; struct meteor_pixfmt *pf_pub; +#if defined( STATUS_SUM ) + unsigned int temp; +#endif + switch (cmd) { case METEORSINPUT: /* set input device */ |