From: Phil Sutter Date: Thu, 24 Aug 2017 17:14:12 +0000 (+0200) Subject: scanner: Make use of yylex_init_extra() X-Git-Tag: v0.8~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7beb7a633315d540bddd127948803a3b555d286;p=thirdparty%2Fnftables.git scanner: Make use of yylex_init_extra() This combines the calls to yylex_init() and yyset_extra(). Signed-off-by: Phil Sutter --- diff --git a/src/scanner.l b/src/scanner.l index 7d57cc146..f0021c5c0 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -849,8 +849,7 @@ void *scanner_init(struct parser_state *state) state->indesc = state->indescs; - yylex_init(&scanner); - yyset_extra(state, scanner), + yylex_init_extra(state, &scanner); yyset_out(NULL, scanner); return scanner;