mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
wmaker: took as much assignation as possible outside 'if' statements
It is generally considered bad practice to place an assignation inside the expression for an "if" statement because it is often a source of bug, because of possible typos and because it makes reviewing code more complicated. This patch fixes as much cases as possible to make the code easier to read. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
e14fad1162
commit
1c1909d5fe
@@ -103,7 +103,8 @@ int MonitorLoop(int argc, char **argv)
|
||||
}
|
||||
|
||||
do {
|
||||
if ((exited = waitpid(-1, &status, 0)) < 0) {
|
||||
exited = waitpid(-1, &status, 0);
|
||||
if (exited < 0) {
|
||||
werror(_("Error during monitoring of Window Maker process."));
|
||||
error = True;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user