summaryrefslogtreecommitdiff
path: root/sys/dev/sun
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-03-19 11:41:57 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-03-19 11:41:57 +0000
commitd16c6aa7a075ad00ce2bccb0a5b52b930477d6ac (patch)
treea449a7c7ebfb7ff813f030b13fc6c53845d2d63e /sys/dev/sun
parentcde54d41d41ecc698408ab4c1f6c1ed3bdcd939e (diff)
Reduces the noise around the global ``ticks'' variable by renaming all
local ones to ``nticks''. (missed in previous) ok stefan@, deraadt@
Diffstat (limited to 'sys/dev/sun')
-rw-r--r--sys/dev/sun/sunkbd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/sun/sunkbd.c b/sys/dev/sun/sunkbd.c
index fa501110842..c2fd94738a0 100644
--- a/sys/dev/sun/sunkbd.c
+++ b/sys/dev/sun/sunkbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunkbd.c,v 1.26 2011/11/09 14:22:37 shadchin Exp $ */
+/* $OpenBSD: sunkbd.c,v 1.27 2016/03/19 11:41:56 mpi Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -84,7 +84,7 @@ sunkbd_attach(struct sunkbd_softc *sc, struct wskbddev_attach_args *waa)
void
sunkbd_bell(struct sunkbd_softc *sc, u_int period, u_int pitch, u_int volume)
{
- int ticks, s;
+ int nticks, s;
u_int8_t c = SKBD_CMD_BELLON;
#if NTCTRL > 0
@@ -103,14 +103,14 @@ sunkbd_bell(struct sunkbd_softc *sc, u_int period, u_int pitch, u_int volume)
return;
}
if (sc->sc_bellactive == 0) {
- ticks = (period * hz) / 1000;
- if (ticks <= 0)
- ticks = 1;
+ nticks = (period * hz) / 1000;
+ if (nticks <= 0)
+ nticks = 1;
sc->sc_bellactive = 1;
sc->sc_belltimeout = 1;
(*sc->sc_sendcmd)(sc, &c, 1);
- timeout_add(&sc->sc_bellto, ticks);
+ timeout_add(&sc->sc_bellto, nticks);
}
splx(s);
}