summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-08-24 19:14:12 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-08-24 19:20:29 +0200
commitc7beb7a633315d540bddd127948803a3b555d286 (patch)
tree2d5aedf7fbfcc2b9fbb9de06af04bc02e1f76a50 /src
parentc9c565ef45396206dc450e59f8b3225407c88a88 (diff)
scanner: Make use of yylex_init_extra()
This combines the calls to yylex_init() and yyset_extra(). Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src')
-rw-r--r--src/scanner.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 7d57cc14..f0021c5c 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;