tor/src/tools
Nick Mathewson 4438ef3288 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)
2018-02-20 10:14:15 -05:00
..
tor-fw-helper Update tor-fw-helper URL 2015-08-05 15:07:13 -04:00
include.am Add a small library to emulate tor_run_main() with exec() 2017-11-01 13:22:09 -04:00
Makefile.nmake Add a missing part of bug 7311's makefile.nmake tweaks 2013-01-17 10:01:22 -05:00
tor_runner.c tor_runner.c: Add a circumlocution and a caveat. 2017-11-01 13:22:09 -04:00
tor-gencert.c Remove a bunch of other redundant #includes 2018-02-20 10:14:15 -05:00
tor-resolve.c Fix the log-severities memory-leak in tor-resolve.c 2017-12-11 11:49:57 -05:00