diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-20 10:14:15 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-20 10:14:15 -0500 |
commit | 4438ef3288256e1f1ba706c157206a2ac190781d (patch) | |
tree | 3515fdc2c6f7b258c9fa81bb191e6bff90ecb66d /src/or/hs_client.c | |
parent | a4ab273a0dafdd85e8e9f204c6e3e092282d3620 (diff) | |
download | tor-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/hs_client.c')
-rw-r--r-- | src/or/hs_client.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c index d3d13723e4..20963cd453 100644 --- a/src/or/hs_client.c +++ b/src/or/hs_client.c @@ -17,7 +17,6 @@ #include "hs_descriptor.h" #include "hs_cache.h" #include "hs_cell.h" -#include "hs_ident.h" #include "config.h" #include "directory.h" #include "hs_client.h" @@ -29,7 +28,6 @@ #include "connection.h" #include "nodelist.h" #include "circpathbias.h" -#include "connection.h" #include "hs_ntor.h" #include "circuitbuild.h" #include "networkstatus.h" |