diff options
| author | 1999-06-04 21:41:18 +0000 | |
|---|---|---|
| committer | 1999-06-04 21:41:18 +0000 | |
| commit | 342172ffeaac2cd8d4ebaad50c8c5106ce0470c8 (patch) | |
| tree | d86a63c2a9d04f7356000a17bdf2cfb1cd7a9beb | |
| parent | some repairs, add example to strdup(3) page (diff) | |
| download | wireguard-openbsd-342172ffeaac2cd8d4ebaad50c8c5106ce0470c8.tar.xz wireguard-openbsd-342172ffeaac2cd8d4ebaad50c8c5106ce0470c8.zip | |
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; } |
