From 6c1bf756d341be3560274bebe46b7d2715991dd9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 16 May 2023 11:37:44 +0100 Subject: 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 --- util/spkmodem_recv/spkmodem-recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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 -- cgit v1.2.1