From e817aeec32f22c87b05d81afa36b494fb29f0b18 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 2 Sep 2009 06:21:16 +0000 Subject: [PATCH] Minor simplification. [r26466] --- parser.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/parser.c b/parser.c index dc94f49..6e2685b 100644 --- a/parser.c +++ b/parser.c @@ -2521,11 +2521,7 @@ static void append_entity(scope_t *scope, entity_t *entity) static compound_t *parse_compound_type_specifier(bool is_struct) { - if (is_struct) { - eat(T_struct); - } else { - eat(T_union); - } + eat(is_struct ? T_struct : T_union); symbol_t *symbol = NULL; compound_t *compound = NULL; -- 2.20.1