From 5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Tue, 9 Jul 2024 14:41:53 +0200 Subject: initial clang-format --- src/wait.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/wait.c') diff --git a/src/wait.c b/src/wait.c index 869a120..ab58828 100644 --- a/src/wait.c +++ b/src/wait.c @@ -1,5 +1,6 @@ #include #include + #include "logmsg.h" /** @@ -11,15 +12,14 @@ int wait_nohang(int *wstat) { - return waitpid(-1,wstat,WNOHANG); + return waitpid(-1, wstat, WNOHANG); } -int wait_pid(int *wstat,int pid) +int wait_pid(int *wstat, int pid) { int r; - do - r = waitpid(pid,wstat,0); + do r = waitpid(pid, wstat, 0); while ((r == -1) && (errno == EINTR)); return r; } -- cgit v1.2.3