diff options
| author | takemura <takemura@NetBSD.org> | 2002-01-13 08:28:27 +0000 |
|---|---|---|
| committer | takemura <takemura@NetBSD.org> | 2002-01-13 08:28:27 +0000 |
| commit | 9ea4be44f4f2eb269271e28de45629dee9dc3dc7 (patch) | |
| tree | e4048da9ccb638d14e7c4634e5498d2195f52908 /sys/dev/hpc | |
| parent | fe1cad9aa984233cbe02dd2484220fbc60cc406f (diff) | |
Number of elements in button_config is smaller than CONFIG_HOOK_MAX_ID.
Diffstat (limited to 'sys/dev/hpc')
| -rw-r--r-- | sys/dev/hpc/btnmgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hpc/btnmgr.c b/sys/dev/hpc/btnmgr.c index 3a92a657804..baca743fd5a 100644 --- a/sys/dev/hpc/btnmgr.c +++ b/sys/dev/hpc/btnmgr.c @@ -1,4 +1,4 @@ -/* $NetBSD: btnmgr.c,v 1.3 2001/11/13 12:47:56 lukem Exp $ */ +/* $NetBSD: btnmgr.c,v 1.4 2002/01/13 08:28:27 takemura Exp $ */ /*- * Copyright (c) 1999 @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.3 2001/11/13 12:47:56 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.4 2002/01/13 08:28:27 takemura Exp $"); #define BTNMGRDEBUG @@ -183,7 +183,7 @@ btnmgrattach(struct device *parent, struct device *self, void *aux) /* * install button event listener */ - for (id = 0; id <= CONFIG_HOOK_MAX_ID; id++) + for (id = 0; id <= n_button_config; id++) if (button_config[id].name != NULL) sc->sc_hook_tag = config_hook(CONFIG_HOOK_BUTTONEVENT, id, CONFIG_HOOK_SHARE, |
