From 23e4894d566730c313c08bab772abbbf6bdd6bf6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 4 Jun 1999 21:41:19 +0000 Subject: quiet gcc --- usr.sbin/apmd/apmd.c | 4 ++-- 1 file 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; } -- cgit v1.2.3