From c0e174c085478e8bcea1a31d527df6e58f7448d1 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Fri, 29 Jun 2018 15:52:46 +0200 Subject: Fixed compilation warnings Fixed all the compilation warning that appeared with the latest version of gcc. There are still warnings in the gstreamer headers, that would likely be fixed by a gstreamer bump. Change-Id: I3ae7698dbff47303be366d9755a643a013bb4e51 Signed-off-by: Thierry Bultel --- binding/rtl_fm_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'binding/rtl_fm_helper.c') diff --git a/binding/rtl_fm_helper.c b/binding/rtl_fm_helper.c index 9405ae2..c7df4b9 100644 --- a/binding/rtl_fm_helper.c +++ b/binding/rtl_fm_helper.c @@ -175,7 +175,8 @@ int main(int argc, char *argv[]) while(!done) { LOG("Reading command\n"); - fgets(line, sizeof(line), stdin); + if (fgets(line, sizeof(line), stdin) == NULL) + break; if(line[0] == '\0' || line[0] == '\n') continue; if(strcmp(line, "START\n") == 0) { -- cgit 1.2.3-korg