From patchwork Mon Mar 9 07:10:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Viro X-Patchwork-Id: 10621 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n297Afmc002390 for ; Mon, 9 Mar 2009 07:10:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752306AbZCIHKk (ORCPT ); Mon, 9 Mar 2009 03:10:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752777AbZCIHKk (ORCPT ); Mon, 9 Mar 2009 03:10:40 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:43726 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752306AbZCIHKj (ORCPT ); Mon, 9 Mar 2009 03:10:39 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.69 #1 (Red Hat Linux)) id 1LgZdG-0000rw-0M for linux-sparse@vger.kernel.org; Mon, 09 Mar 2009 07:10:38 +0000 To: linux-sparse@vger.kernel.org Subject: [PATCH 3/18] Fix braino in which_kind() Message-Id: From: Al Viro Date: Mon, 09 Mar 2009 07:10:38 +0000 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org Signed-off-by: Al Viro --- 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 */