diff options
Diffstat (limited to 'src/proto.c')
-rw-r--r-- | src/proto.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/proto.c b/src/proto.c index 6eb4bb24..7dc7b3e2 100644 --- a/src/proto.c +++ b/src/proto.c @@ -751,20 +751,6 @@ static const struct symbol_table ethertype_tbl = { }, }; -static struct error_record *ethertype_parse(const struct expr *sym, - struct expr **res) -{ - struct error_record *erec; - - *res = NULL; - erec = sym->dtype->basetype->parse(sym, res); - if (erec != NULL) - return erec; - if (*res) - return NULL; - return symbolic_constant_parse(sym, ðertype_tbl, res); -} - static void ethertype_print(const struct expr *expr) { return symbolic_constant_print(ðertype_tbl, expr); @@ -779,7 +765,7 @@ const struct datatype ethertype_type = { .basetype = &integer_type, .basefmt = "0x%.4Zx", .print = ethertype_print, - .parse = ethertype_parse, + .sym_tbl = ðertype_tbl, }; #define ETHHDR_TEMPLATE(__name, __dtype, __member) \ |