summaryrefslogtreecommitdiff
path: root/src/tests/dlt-test-fork-handler.c
diff options
context:
space:
mode:
authorChristoph Lipka <clipka@de.adit-jv.com>2018-12-20 14:58:19 +0100
committerChristoph Lipka <clipka@de.adit-jv.com>2018-12-21 10:23:41 +0100
commitdca8ab254aa0a687c32009079d85e4d8f960b213 (patch)
treee63b6a552fd9f61873892110a56a89ef354864cd /src/tests/dlt-test-fork-handler.c
parent0d0c74640c8b792db37cb9f884f89f7561ea551f (diff)
downloadDLT-daemon-dca8ab254aa0a687c32009079d85e4d8f960b213.tar.gz
Code beautification using uncrustify
Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
Diffstat (limited to 'src/tests/dlt-test-fork-handler.c')
-rw-r--r--src/tests/dlt-test-fork-handler.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tests/dlt-test-fork-handler.c b/src/tests/dlt-test-fork-handler.c
index 84685f9..4bd3321 100644
--- a/src/tests/dlt-test-fork-handler.c
+++ b/src/tests/dlt-test-fork-handler.c
@@ -22,7 +22,7 @@
* License MPL-2.0: Mozilla Public License version 2.0 http://mozilla.org/MPL/2.0/.
*
* \file dlt-test-fork-handler.c
-*/
+ */
#include <unistd.h> /* for fork() */
@@ -41,8 +41,8 @@ int main()
usleep(200000);
pid_t pid = fork();
- if (pid == 0) /* child process */
- {
+
+ if (pid == 0) { /* child process */
/* this message should not be visible */
/* DLT_LOG(mainContext, DLT_LOG_WARN, DLT_STRING("Child's first message after fork, pid: "), DLT_INT32(getpid())); */
/* unfortunately, this message does arrive, I assume because it still has (locally) valid data ... */
@@ -56,8 +56,7 @@ int main()
{
return -1;
}
- else /* parent */
- {
+ else { /* parent */
DLT_LOG(mainContext, DLT_LOG_WARN, DLT_STRING("Parent's first message after fork, pid: "), DLT_INT32(getpid()));
usleep(500000);
}