scripts: generator-internals: Fix return value
PATCH 1/1 scripts: generator-internals: Fix return value
Returning -1 from a function with bool as return type is the same as returning true. Change to false to indicate failure if there is an error in the child.
Signed-off-by Rikard Falkeborn <[email protected]>
--- scripts/generator-internals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/generator-internals.c +1 -1
@@ -101,7 +101,7 @@ static bool _close_child(struct child_process *child)while (waitpid (child->pid, &status,0 ) <0 )if (errno !=EINTR ) -return -1 ; +return false;if (WIFEXITED (status) && !WEXITSTATUS (status))return true;
Signature · 1 line
2.21.0