9
0
Fork 0

hush: refactor reserved_word()

Save indentation level for easier readability.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-11-12 10:39:33 +01:00
parent b763f01728
commit f5923be4c6
1 changed files with 35 additions and 35 deletions

View File

@ -1201,7 +1201,8 @@ static int reserved_word(o_string *dest, struct p_context *ctx)
for (i = 0; i < ARRAY_SIZE(reserved_list); i++) {
r = &reserved_list[i];
if (strcmp(dest->data, r->literal) == 0) {
if (strcmp(dest->data, r->literal))
continue;
debug("found reserved word %s, code %d\n",r->literal,r->code);
@ -1247,7 +1248,6 @@ static int reserved_word(o_string *dest, struct p_context *ctx)
return 1;
}
}
return 0;
}