From 6a8e7c58a2bfee32394ad654e08bf7a0178fb1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gordan=20Marku=C5=A1?= Date: Thu, 18 May 2017 10:55:27 +0200 Subject: dlt-system-process-handling: fix warning (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In function ‘daemonize’: dlt-daemon/src/system/dlt-system-process-handling.c:84:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(i = getdtablesize(); i >= 0; i--) ^~~ dlt-daemon/src/system/dlt-system-process-handling.c:87:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ int fd = open("/dev/null",O_RDWR); ^~~ Singed-off-by: Gordan Markuš --- src/system/dlt-system-process-handling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/dlt-system-process-handling.c b/src/system/dlt-system-process-handling.c index 0b6b77d..21e2987 100644 --- a/src/system/dlt-system-process-handling.c +++ b/src/system/dlt-system-process-handling.c @@ -84,7 +84,7 @@ int daemonize() for(i = getdtablesize(); i >= 0; i--) close(i); - int fd = open("/dev/null",O_RDWR); + int fd = open("/dev/null",O_RDWR); if(fd < 0) { return -1; -- cgit v1.2.1