aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-02-20 10:14:15 -0500
committerNick Mathewson <nickm@torproject.org>2018-02-20 10:14:15 -0500
commit4438ef3288256e1f1ba706c157206a2ac190781d (patch)
tree3515fdc2c6f7b258c9fa81bb191e6bff90ecb66d /src/or/circuituse.c
parenta4ab273a0dafdd85e8e9f204c6e3e092282d3620 (diff)
downloadtor-4438ef3288256e1f1ba706c157206a2ac190781d.tar.gz
tor-4438ef3288256e1f1ba706c157206a2ac190781d.zip
Remove a bunch of other redundant #includes
Folks have found two in the past week or so; we may as well fix the others. Found with: \#!/usr/bin/python3 import re def findMulti(fname): includes = set() with open(fname) as f: for line in f: m = re.match(r'^\s*#\s*include\s+["<](\S+)[>"]', line) if m: inc = m.group(1) if inc in includes: print("{}: {}".format(fname, inc)) includes.add(m.group(1)) import sys for fname in sys.argv[1:]: findMulti(fname)
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 13bd84e65c..8d388cc2c6 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -55,7 +55,6 @@
#include "rephist.h"
#include "router.h"
#include "routerlist.h"
-#include "config.h"
static void circuit_expire_old_circuits_clientside(void);
static void circuit_increment_failure_count(void);