diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/collect.c | 5 | ||||
-rw-r--r-- | lib/extract.c | 3 | ||||
-rw-r--r-- | lib/sql.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/collect.c b/lib/collect.c index 21ad415..5ea673a 100644 --- a/lib/collect.c +++ b/lib/collect.c @@ -1,7 +1,7 @@ // The MIT License (MIT) -// Copyright (c) 2017 Yun-Chih Chen +// Copyright (c) 2018 Yun-Chih Chen // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -39,7 +39,8 @@ Global g; -static int handle_packet(__attribute__((unused)) struct nflog_g_handle *gh, __attribute__((unused)) struct nfgenmsg *nfmsg, +static int handle_packet(__attribute__((unused)) struct nflog_g_handle *gh, + __attribute__((unused)) struct nfgenmsg *nfmsg, struct nflog_data *nfa, void *_s) { #define HASH_ENTRY(e) (e->sport ^ e->timestamp) register const struct iphdr *iph; diff --git a/lib/extract.c b/lib/extract.c index 5687ad2..50d9d6b 100644 --- a/lib/extract.c +++ b/lib/extract.c @@ -44,7 +44,8 @@ static bool extract_zstd(State *s, const void *src) { static bool extract_lz4(State *s, const void *src) { // TODO - (void)s; (void)src; + (void)s; + (void)src; return true; } @@ -44,7 +44,7 @@ static inline int db_prepare(sqlite3 *db, const char *cmd, const char *errmsg, int db_set_pragma(sqlite3 *db) { return db_exec_fatal(db, "PRAGMA journal_mode=WAL;" - "PRAGMA foreign_keys = ON;", + "PRAGMA foreign_keys=ON;", "Can't set Sqlite3 PRAGMA"); } |