From dbe4db7f9bf1f05b55501c185a61dfa8308cff70 Mon Sep 17 00:00:00 2001 From: Igor Kulaychuk Date: Thu, 13 Dec 2018 14:46:37 +0300 Subject: [PATCH] Fix missing return values --- profctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/profctl.c b/profctl.c index 74d7fdb..525ef82 100644 --- a/profctl.c +++ b/profctl.c @@ -104,16 +104,16 @@ static void *data_output_thread(void *arg) data_socket = openPort(dataPort); if (data_socket < 0) { log_error("cannot open data port"); - return; + return NULL; } data_file_out = fdopen(data_socket, "w"); if (data_file_out == NULL) { log_system_error("fdopen(data,w)"); - return; + return NULL; } if (fprintf(data_file_out, "ready\n") < 0 || fflush(data_file_out) != 0) { log_system_error("cannot write 'ready' prompt to data stream"); - return; + return NULL; } } @@ -768,7 +768,7 @@ int main(int argc, char **argv) } if (fprintf(stat_file_out, "ready\n") < 0 || fflush(stat_file_out) != 0) { log_system_error("cannot write 'ready' prompt to statistics stream"); - return; + return 1; } } -- 2.7.4