aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/speaker
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-05-17 00:34:34 +0000
committerEd Maste <emaste@FreeBSD.org>2017-05-17 00:34:34 +0000
commit3e85b721d653d65a5b6ff655ed1551113f0e0d5b (patch)
tree9f2b92961a0e2680de78b6f1c653a05926cbf817 /sys/dev/speaker
parent00f6cd3f568295e501deae63e38b34d1137a6eb9 (diff)
downloadsrc-3e85b721d653d65a5b6ff655ed1551113f0e0d5b.tar.gz
src-3e85b721d653d65a5b6ff655ed1551113f0e0d5b.zip
Remove register keyword from sys/ and ANSIfy prototypes
A long long time ago the register keyword told the compiler to store the corresponding variable in a CPU register, but it is not relevant for any compiler used in the FreeBSD world today. ANSIfy related prototypes while here. Reviewed by: cem, jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10193
Notes
Notes: svn path=/head/; revision=318389
Diffstat (limited to 'sys/dev/speaker')
-rw-r--r--sys/dev/speaker/spkr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index ec890ff4b666..9b5746d6cf92 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -201,7 +201,7 @@ playinit()
static void
playtone(int pitch, int value, int sustain)
{
- register int sound, silence, snum = 1, sdenom = 1;
+ int sound, silence, snum = 1, sdenom = 1;
/* this weirdness avoids floating-point arithmetic */
for (; sustain; sustain--) {
@@ -243,7 +243,7 @@ playstring(char *cp, size_t slen)
{v = v * 10 + (*++cp - '0'); slen--;}
for (; slen--; cp++) {
int sustain, timeval, tempo;
- register char c = toupper(*cp);
+ char c = toupper(*cp);
#ifdef DEBUG
(void) printf("playstring: %c (%x)\n", c, c);