mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 00:27:09 +02:00
util/spkmodem-recv: bsd-style indent
my style was: 2 tabs. bsd-style, for extending a line, is 4 spaces. this style has grown on me, so let's do it here Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -76,7 +76,7 @@ handle_audio(void)
|
|||||||
err(ERR(), NULL);
|
err(ERR(), NULL);
|
||||||
|
|
||||||
if ((f2 <= FREQ_SEP_MIN) || (f2 >= FREQ_SEP_MAX)
|
if ((f2 <= FREQ_SEP_MIN) || (f2 >= FREQ_SEP_MAX)
|
||||||
|| (f1 <= FREQ_DATA_MIN) || (f1 >= FREQ_DATA_MAX)) {
|
|| (f1 <= FREQ_DATA_MIN) || (f1 >= FREQ_DATA_MAX)) {
|
||||||
fetch_sample();
|
fetch_sample();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ void
|
|||||||
read_frame(int ringpos)
|
read_frame(int ringpos)
|
||||||
{
|
{
|
||||||
if (fread(frame + ringpos, 1, sizeof(frame[0]), stdin)
|
if (fread(frame + ringpos, 1, sizeof(frame[0]), stdin)
|
||||||
!= sizeof(frame[0]))
|
!= sizeof(frame[0]))
|
||||||
err(ERR(), "Could not read from frame.");
|
err(ERR(), "Could not read from frame.");
|
||||||
if (ferror(stdin) != 0)
|
if (ferror(stdin) != 0)
|
||||||
err(ERR(), "Could not read from frame");
|
err(ERR(), "Could not read from frame");
|
||||||
@@ -124,7 +124,7 @@ print_char(void)
|
|||||||
if ((stdin_pos = ftell(stdin)) == -1)
|
if ((stdin_pos = ftell(stdin)) == -1)
|
||||||
err(ERR(), NULL);
|
err(ERR(), NULL);
|
||||||
printf ("%d %d %d @%ld\n", f1, f2, FREQ_DATA_THRESHOLD,
|
printf ("%d %d %d @%ld\n", f1, f2, FREQ_DATA_THRESHOLD,
|
||||||
stdin_pos - sizeof(frame));
|
stdin_pos - sizeof(frame));
|
||||||
#endif
|
#endif
|
||||||
if (f1 < FREQ_DATA_THRESHOLD)
|
if (f1 < FREQ_DATA_THRESHOLD)
|
||||||
ascii |= (1 << ascii_bit);
|
ascii |= (1 << ascii_bit);
|
||||||
|
|||||||
Reference in New Issue
Block a user