[PATCH 3/18] Fix braino in which_kind()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
 parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/parse.c b/parse.c
index 74a8103..08de424 100644
--- a/parse.c
+++ b/parse.c
@@ -1260,7 +1260,7 @@ static enum kind which_kind(struct token *token, struct token **p,
 	}
 
 	if (token_type(next) != TOKEN_SPECIAL)
-		return dont_nest ? Bad_Nested : Bad_Func;
+		return !dont_nest ? Bad_Nested : Bad_Func;
 
 	if (next->special == ')') {
 		/* don't complain about those */
-- 
1.5.6.5


--
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

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux