From 7253b8a07a358c037adfc199865df76901e80229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D1=80=D0=BE=D0=BC=D0=B5=D0=BD=D0=BE=D0=BA=20=D0=A0?= =?UTF-8?q?=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Thu, 13 Jun 2024 17:06:15 +0200 Subject: [PATCH] edit format in operator else --- apps/cli/cli_common.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/cli/cli_common.c b/apps/cli/cli_common.c index cb6ae06a..5343e87f 100644 --- a/apps/cli/cli_common.c +++ b/apps/cli/cli_common.c @@ -873,15 +873,18 @@ cli_start_program(clixon_handle h, execlp(runner, runner, script_path, NULL); clixon_err(OE_PLUGIN, errno, "Error run script"); return -1; - }else if(pid == -1){ + } + else if(pid == -1){ clixon_err(OE_PLUGIN, errno, "fork"); - }else{ + } + else{ /* parent process */ int status; if (waitpid(pid, &status, 0) != pid ){ clixon_err(OE_PLUGIN, errno, "waitpid error"); goto done; - } else { + } + else { return WEXITSTATUS(status); } }