diff options
author | Yunchih Chen <yunchih.cat@gmail.com> | 2018-12-07 22:26:09 +0800 |
---|---|---|
committer | Yunchih Chen <yunchih.cat@gmail.com> | 2018-12-07 22:26:09 +0800 |
commit | 098b0b68c9bc4b4fefb616cf9af4dc4a3bb92e8b (patch) | |
tree | d39673edad09778f163a63aa1c7de74ed22f8477 | |
parent | 199fd116a39fc4ac41a56395751ac2a5c983de9c (diff) | |
download | nfcollect-098b0b68c9bc4b4fefb616cf9af4dc4a3bb92e8b.tar.gz nfcollect-098b0b68c9bc4b4fefb616cf9af4dc4a3bb92e8b.tar.zst nfcollect-098b0b68c9bc4b4fefb616cf9af4dc4a3bb92e8b.zip |
Minor formatting and copyright
-rw-r--r-- | bin/nfcollect.c | 2 | ||||
-rw-r--r-- | include/main.h | 2 | ||||
-rw-r--r-- | lib/collect.c | 5 | ||||
-rw-r--r-- | lib/extract.c | 3 | ||||
-rw-r--r-- | lib/sql.c | 2 |
5 files changed, 8 insertions, 6 deletions
diff --git a/bin/nfcollect.c b/bin/nfcollect.c index 16a4248..a36d177 100644 --- a/bin/nfcollect.c +++ b/bin/nfcollect.c @@ -1,7 +1,7 @@ // The MIT License (MIT) -// Copyright (c) 2017 Yun-Chih Chen +// Copyright (c) 2018 Yun-Chih Chen // Copyright (c) 2013 Florian Richter (nflogtable) // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/include/main.h b/include/main.h index 8d5b628..c2407e1 100644 --- a/include/main.h +++ b/include/main.h @@ -1,6 +1,6 @@ // 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 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"); } |