util/spkmodem-recv: minor code cleanup
also be more thorough about errno value when calling pledge. rename variable in a for loop for clarity. Signed-off-by: Leah Rowe <leah@libreboot.org>fsdg20230625
parent
3c2a287eea
commit
e8889fd107
|
@ -40,7 +40,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if (pledge("stdio", NULL) == -1)
|
if (pledge("stdio", NULL) == -1)
|
||||||
err(errno, "pledge");
|
err(ERR(), "pledge");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "u")) != -1) {
|
while ((c = getopt(argc, argv, "u")) != -1) {
|
||||||
|
@ -82,9 +82,8 @@ handle_audio(void)
|
||||||
|
|
||||||
print_char();
|
print_char();
|
||||||
|
|
||||||
lp = 0;
|
lp = llp = 0;
|
||||||
llp = 0;
|
for (int sample = 0; sample < SAMPLES_PER_FRAME; sample++)
|
||||||
for (int i = 0; i < SAMPLES_PER_FRAME; i++)
|
|
||||||
fetch_sample();
|
fetch_sample();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue