Browse Source

tools: set, don't increment bool.

Not really a bug, but stylistically questionable and makes PCS Suite
complain.

Reported-by: Jon Griffiths
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 9 years ago
parent
commit
f8361f19e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/doc_extract-core.c

+ 1 - 1
tools/doc_extract-core.c

@@ -46,7 +46,7 @@ static char **grab_doc(char **lines, unsigned int **linemap,
 					warnx("%s:%u:"
 					      " Expected ' *' in comment.",
 					      file, i+1);
-					warned++;
+					warned = true;
 				}
 				ret[num++] = tal_strdup(ret, lines[i]);
 				if (strstr(lines[i], "*/"))