Unify usage of `eof_token'. Version with respective assertions added will be provided, mainly for convenient testing. I used it to proceeded sparse itself and linux-2.6.35.12 sources with no assertion violation encountered. Signed-off-by: Jan Pokorny <pokorny_jan@xxxxxxxxx> --- pre-process.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pre-process.c b/pre-process.c index 603cc00..c0fc89d 100644 --- a/pre-process.c +++ b/pre-process.c @@ -794,7 +794,7 @@ out: static int free_preprocessor_line(struct token *token) { - while (token_type(token) != TOKEN_EOF) { + while (!eof_token(token)) { struct token *free = token; token = token->next; __free_token(free); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html