diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/spkmodem_recv/spkmodem-recv.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c index 93afd95a..77d64637 100644 --- a/util/spkmodem_recv/spkmodem-recv.c +++ b/util/spkmodem_recv/spkmodem-recv.c @@ -40,7 +40,7 @@ main(int argc, char *argv[]) #ifdef __OpenBSD__ if (pledge("stdio", NULL) == -1) - err(errno, "pledge"); + err(ERR(), "pledge"); #endif while ((c = getopt(argc, argv, "u")) != -1) { @@ -82,9 +82,8 @@ handle_audio(void) print_char(); - lp = 0; - llp = 0; - for (int i = 0; i < SAMPLES_PER_FRAME; i++) + lp = llp = 0; + for (int sample = 0; sample < SAMPLES_PER_FRAME; sample++) fetch_sample(); } |