summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-16 08:40:02 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-16 23:11:35 +0100
commit2c12e70cfe5e6fd636e399b3306e311ca8e9196b (patch)
tree4ac8878e46279bc87aca897d379f02b3e14cfc11
parent5b6f5cb06b0827fc025219224fe4d63abeb951af (diff)
util/spkmodem_recv: Rename variable for clarity
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index dc2a5bcc..bbd0dea8 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -32,7 +32,7 @@ int
main(int argc, char *argv[])
{
int bitn = 7;
- char c = 0;
+ char ascii = 0;
int i;
int llp = 0;
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
while (!feof(stdin)) {
if (lp > 3 * SAMPLES_PER_FRAME) {
bitn = 7;
- c = 0;
+ ascii = 0;
lp = 0;
llp++;
}
@@ -58,16 +58,16 @@ main(int argc, char *argv[])
ftell(stdin) - sizeof(frame));
#endif
if (f1 < FREQ_DATA_THRESHOLD)
- c |= (1 << bitn);
+ ascii |= (1 << bitn);
bitn--;
if (bitn < 0) {
#if DEBUG
- printf("<%c, %x>", c, c);
+ printf("<%c, %x>", ascii, ascii);
#else
- printf("%c", c);
+ printf("%c", ascii);
#endif
bitn = 7;
- c = 0;
+ ascii = 0;
}
lp = 0;
llp = 0;