Add missing header guards

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-09-16 06:49:17 +02:00
parent 4df3c26ce7
commit acbe08cbc5
5 changed files with 11 additions and 3 deletions
-1
View File
@@ -33,7 +33,6 @@
#include <errno.h>
#include <pthread.h>
#include <sys/prctl.h>
//#include <math.h>
#include <pwd.h>
// syslog
#include <syslog.h>
+5
View File
@@ -8,5 +8,10 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
#ifndef SQLITE3_EXT_H
#define SQLITE3_EXT_H
// Initialization point for SQLite3 extensions
extern int sqlite3_pihole_extensions_init(sqlite3 *db, const char **pzErrMsg, const struct sqlite3_api_routines *pApi);
#endif // SQLITE3_EXT_H
-1
View File
@@ -19,7 +19,6 @@
#include <signal.h>
// clock_gettime()
#include <sys/time.h>
//#include <sys/types.h>
#include <sys/wait.h>
// wait()
#include <sys/socket.h>
+5
View File
@@ -8,7 +8,12 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
#ifndef GRAVITY_PARSELIST_H
#define GRAVITY_PARSELIST_H
#include "FTL.h"
int gravity_parseList(const char *infile, const char *outfile, const char *adlistID, const bool checkOnly, const bool antigravity);
bool __attribute__((pure)) valid_domain(const char *domain, const size_t len, const bool fqdn_only);
#endif // GRAVITY_PARSELIST_H
+1 -1
View File
@@ -606,7 +606,7 @@ void FTL_rewrite_pattern(char *filename, unsigned long filename_buf_len)
filename_lp = append_to_path(filename, ".lp");
if(filename_lp == NULL)
{
//Failed to allocate memory for filename!");
// Failed to allocate memory for filename
return;
}