From 4438ef3288256e1f1ba706c157206a2ac190781d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 20 Feb 2018 10:14:15 -0500 Subject: 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) --- src/test/test_address.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/test/test_address.c') diff --git a/src/test/test_address.c b/src/test/test_address.c index 9c88d37a41..0dd7b40334 100644 --- a/src/test/test_address.c +++ b/src/test/test_address.c @@ -11,8 +11,11 @@ #include #endif -#ifdef HAVE_IFADDRS_TO_SMARTLIST +#ifdef HAVE_NET_IF_H #include +#endif + +#ifdef HAVE_IFADDRS_TO_SMARTLIST #include #endif @@ -20,7 +23,6 @@ #ifdef HAVE_SYS_IOCTL_H #include #endif -#include #endif /* defined(HAVE_IFCONF_TO_SMARTLIST) */ #include "or.h" -- cgit v1.2.3-54-g00ecf