Browse Source

configurator: Clarify empty if

configurator.c contains an if with an empty statement on the same line as
the condition.  This is very easy to misread, and also causes a warning
from clang, so move the ; onto the next line.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
David Gibson 10 years ago
parent
commit
434fcf81cb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/configurator/configurator.c

+ 2 - 1
tools/configurator/configurator.c

@@ -497,7 +497,8 @@ static bool run_test(const char *cmd, struct test *test)
 	fclose(outf);
 
 	if (verbose > 1)
-		if (system("cat " INPUT_FILE) == -1);
+		if (system("cat " INPUT_FILE) == -1)
+			;
 
 	newcmd = strdup(cmd);