systemd/0467-firstboot-silence-cove...

24 lines
788 B
Diff

From 94956f8fba498d5d34a88a7e26b0418a4a0e9e6d Mon Sep 17 00:00:00 2001
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
Date: Thu, 2 Oct 2014 21:26:11 +0200
Subject: [PATCH] firstboot: silence coverity
CID#1237537
---
src/firstboot/firstboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index 215c059ee2..f586c2ef7f 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -68,7 +68,7 @@ static bool press_any_key(void) {
printf("-- Press any key to proceed --");
fflush(stdout);
- read_one_char(stdin, &k, USEC_INFINITY, &need_nl);
+ (void) read_one_char(stdin, &k, USEC_INFINITY, &need_nl);
if (need_nl)
putchar('\n');