diff options
author | Gordan Markuš <gordan.markus@pelagicore.com> | 2017-05-18 10:55:27 +0200 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2017-05-18 14:25:27 +0530 |
commit | 6a8e7c58a2bfee32394ad654e08bf7a0178fb1e7 (patch) | |
tree | c7658b049198905d4605b6672b124809ba8de5b0 | |
parent | 3b6d7d95d91683720f353ce0c72f513b1414fcda (diff) | |
download | DLT-daemon-6a8e7c58a2bfee32394ad654e08bf7a0178fb1e7.tar.gz |
dlt-system-process-handling: fix warning (#12)
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š <gordan.markus@pelagicore.com>
-rw-r--r-- | src/system/dlt-system-process-handling.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |