path: root/src
diff options
authorPhil Sutter <>2017-08-24 19:14:11 +0200
committerPablo Neira Ayuso <>2017-08-24 19:20:29 +0200
commitc9c565ef45396206dc450e59f8b3225407c88a88 (patch)
tree0354fb3f7c8b384f620ee58b28fc0b95dd1b0031 /src
parent80ee176dccf6954c8cc6493283ddadba42b8f694 (diff)
scanner: Fix for wrong parameter type of scanner_destroy()
The function takes the scanner as argument, not the state. This wasn't a real issue since scanner is a void pointer, which means it's only casted around without need. So this fix is a rather cosmetic one. Signed-off-by: Phil Sutter <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 25e4eb1c..7d57cc14 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -856,7 +856,7 @@ void *scanner_init(struct parser_state *state)
return scanner;
-void scanner_destroy(struct parser_state *scanner)
+void scanner_destroy(void *scanner)
struct parser_state *state = yyget_extra(scanner);