summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/apmd/apmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index e2215836d4e..bc96796192a 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -227,7 +227,7 @@ void
make_noise(howmany)
int howmany;
{
- int spkrfd;
+ int spkrfd = -1;
int trycnt;
if (!speaker_ok) /* don't bother after sticky errors */
@@ -259,7 +259,7 @@ int howmany;
return;
}
syslog(LOG_DEBUG, "sending %d tones to speaker", howmany);
- write (spkrfd, "o4cc", 2 + howmany);
+ write(spkrfd, "o4cc", 2 + howmany);
close(spkrfd);
return;
}