Remove unnecessary pointer/type indirection.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 12 Dec 2007 09:16:36 +0000 (09:16 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 12 Dec 2007 09:16:36 +0000 (09:16 +0000)
[r18703]

parser.c

index 4c41632..0e13218 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1367,7 +1367,7 @@ static declaration_t *parse_compound_type_specifier(bool is_struct)
        return declaration;
 }
 
-static void parse_enum_entries(enum_type_t *const enum_type)
+static void parse_enum_entries(type_t *const enum_type)
 {
        eat('{');
 
@@ -1386,7 +1386,7 @@ static void parse_enum_entries(enum_type_t *const enum_type)
                        return;
                }
                entry->storage_class   = STORAGE_CLASS_ENUM_ENTRY;
-               entry->type            = (type_t*) enum_type;
+               entry->type            = enum_type;
                entry->symbol          = token.v.symbol;
                entry->source_position = token.source_position;
                next_token();
@@ -1451,7 +1451,7 @@ static type_t *parse_enum_specifier(void)
                append_declaration(declaration);
                declaration->init.is_defined = 1;
 
-               parse_enum_entries(&type->enumt);
+               parse_enum_entries(type);
                parse_attributes();
        }