diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-04 21:41:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-04 21:41:19 +0000 |
commit | 23e4894d566730c313c08bab772abbbf6bdd6bf6 (patch) | |
tree | 3900766896406c2a888554579c3d7bf2bc7b26be | |
parent | ea3aa758f0613eb4538aa90000b1fefafcdc6976 (diff) |
quiet gcc
-rw-r--r-- | usr.sbin/apmd/apmd.c | 4 |
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; } |