diff options
author | Phil Sutter <phil@nwl.cc> | 2017-08-24 19:14:11 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-24 19:20:29 +0200 |
commit | c9c565ef45396206dc450e59f8b3225407c88a88 (patch) | |
tree | 0354fb3f7c8b384f620ee58b28fc0b95dd1b0031 /include | |
parent | 80ee176dccf6954c8cc6493283ddadba42b8f694 (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 <phil@nwl.cc>
Diffstat (limited to 'include')
-rw-r--r-- | include/parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/parser.h b/include/parser.h index 0e266d60..431edfb3 100644 --- a/include/parser.h +++ b/include/parser.h @@ -37,7 +37,7 @@ extern void parser_init(struct mnl_socket *nf_sock, struct nft_cache *cache, extern int nft_parse(struct nft_ctx *ctx, void *, struct parser_state *state); extern void *scanner_init(struct parser_state *state); -extern void scanner_destroy(struct parser_state *state); +extern void scanner_destroy(void *scanner); extern int scanner_read_file(void *scanner, const char *filename, const struct location *loc); |