diff options
author | ru <ru@FreeBSD.org> | 2006-11-16 12:27:51 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-11-16 12:27:51 +0000 |
commit | 9e82974459c03e26ded24a5a55bf0707a93ed127 (patch) | |
tree | 0ccfc7080538194f63a057102473650c27cc2294 /sys/dev/syscons/syscons.c | |
parent | 11bd032934459c00769d781681e7e4f71149bf1a (diff) | |
download | FreeBSD-src-9e82974459c03e26ded24a5a55bf0707a93ed127.zip FreeBSD-src-9e82974459c03e26ded24a5a55bf0707a93ed127.tar.gz |
Replace magic numbers for console bell types with defines.
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r-- | sys/dev/syscons/syscons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 403f527..7dae3ea 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -769,11 +769,11 @@ scioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) return 0; case CONS_BELLTYPE: /* set bell type sound/visual */ - if ((*(int *)data) & 0x01) + if ((*(int *)data) & CONS_VISUAL_BELL) sc->flags |= SC_VISUAL_BELL; else sc->flags &= ~SC_VISUAL_BELL; - if ((*(int *)data) & 0x02) + if ((*(int *)data) & CONS_QUIET_BELL) sc->flags |= SC_QUIET_BELL; else sc->flags &= ~SC_QUIET_BELL; |