summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-16 11:37:44 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-16 23:11:35 +0100
commit6c1bf756d341be3560274bebe46b7d2715991dd9 (patch)
treea5ab61a32258000020cba68bb7f577d380fcac0d
parentc23806e1f6aa197aba32d51d59461e4ace3e92ec (diff)
util/spkmodem_recv: Return errno in main
This is a good general practise, to catch errors. Any errors found can then be handled in code. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index 05729d11..d239e9c1 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -39,7 +39,7 @@ main(int argc, char *argv[])
while (!feof(stdin))
print_chars();
- return 0;
+ return errno;
}
void