X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fasn1_compiler.c;h=71d4a7c87900890a04b3451450cbaab4be5f2ee7;hb=7e3bba93f42e9d9abe81344bdba5ddc635b7c449;hp=adabd41452640991ed86d1557ac32012042ce4e0;hpb=35051f84344bcbd40ba76e943183f0e9a1be9fa5;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c index adabd41..71d4a7c 100644 --- a/scripts/asn1_compiler.c +++ b/scripts/asn1_compiler.c @@ -832,7 +832,7 @@ static void parse(void) static struct element *element_list; -static struct element *alloc_elem(struct token *type) +static struct element *alloc_elem(void) { struct element *e = calloc(1, sizeof(*e)); if (!e) { @@ -860,7 +860,7 @@ static struct element *parse_type(struct token **_cursor, struct token *end, char *p; int labelled = 0, implicit = 0; - top = element = alloc_elem(cursor); + top = element = alloc_elem(); element->class = ASN1_UNIV; element->method = ASN1_PRIM; element->tag = token_to_tag[cursor->token_type]; @@ -939,7 +939,7 @@ static struct element *parse_type(struct token **_cursor, struct token *end, if (!implicit) element->method |= ASN1_CONS; element->compound = implicit ? TAG_OVERRIDE : SEQUENCE; - element->children = alloc_elem(cursor); + element->children = alloc_elem(); element = element->children; element->class = ASN1_UNIV; element->method = ASN1_PRIM;