Skip to content

Commit

Permalink
Remove obsolete variables
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <dl6er@dl6er.de>
  • Loading branch information
DL6ER committed May 19, 2018
1 parent b6dd8ec commit 7a1d037
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions FTL.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ typedef struct {
int reply_NXDOMAIN;
int reply_CNAME;
int reply_IP;
int regex;
} countersStruct;

typedef struct {
Expand All @@ -131,7 +130,6 @@ typedef struct {
int privacylevel;
bool ignore_localhost;
unsigned char blockingmode;
bool blockingregex;
} ConfigStruct;

// Dynamic structs
Expand Down
1 change: 0 additions & 1 deletion log.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ void log_counter_info(void)
logg(" -> Cached DNS queries: %i", counters.cached);
logg(" -> Forwarded DNS queries: %i", counters.forwardedqueries);
logg(" -> Exactly blocked DNS queries: %i", counters.blocked);
logg(" -> Regex blocked DNS queries: %i", counters.regex);
logg(" -> Unknown DNS queries: %i", counters.unknown);
logg(" -> Unique domains: %i", counters.domains);
logg(" -> Unique clients: %i", counters.clients);
Expand Down
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ int main (int argc, char* argv[])
close_telnet_socket();
close_unix_socket();

if(config.blockingregex)
free_regex();
// Invalidate blocking regex if compiled
free_regex();

//Remove PID file
removepid();
Expand Down
1 change: 0 additions & 1 deletion regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ bool match_regex(char *input)
void free_regex(void)
{
// Disable blocking regex checking
config.blockingregex = false;
int index;
for(index = 0; index < num_regex; index++)
if(regexconfigured[index])
Expand Down

0 comments on commit 7a1d037

Please sign in to comment.