diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-04-06 21:42:15 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-04-06 22:49:17 +0000 |
commit | e32fc0806d07b0ff83978132c56f7cbd1a2ad2ce (patch) | |
tree | 649902a85d379e742a9d88a47a34f26a736b69b9 | |
parent | 88190026b3286b32ac22c1bbd999b7f1de2aa79f (diff) | |
download | tor-e32fc0806d07b0ff83978132c56f7cbd1a2ad2ce.tar.gz tor-e32fc0806d07b0ff83978132c56f7cbd1a2ad2ce.zip |
refactor: Alphabetise some includes in /src/or/*.
-rw-r--r-- | src/or/addressmap.c | 2 | ||||
-rw-r--r-- | src/or/ext_orport.c | 2 | ||||
-rw-r--r-- | src/or/hs_client.c | 28 | ||||
-rw-r--r-- | src/or/rendclient.c | 4 | ||||
-rw-r--r-- | src/or/rendcommon.c | 6 | ||||
-rw-r--r-- | src/or/routerparse.c | 16 |
6 files changed, 29 insertions, 29 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c index f691ef9aa0..3cd153307d 100644 --- a/src/or/addressmap.c +++ b/src/or/addressmap.c @@ -23,8 +23,8 @@ #include "control.h" #include "crypto_rand.h" #include "dns.h" -#include "routerset.h" #include "nodelist.h" +#include "routerset.h" /** A client-side struct to remember requests to rewrite addresses * to new addresses. These structs are stored in the hash table diff --git a/src/or/ext_orport.c b/src/or/ext_orport.c index 8fff0f9559..b842442caf 100644 --- a/src/or/ext_orport.c +++ b/src/or/ext_orport.c @@ -20,11 +20,11 @@ #include "or.h" #include "connection.h" #include "connection_or.h" -#include "ext_orport.h" #include "control.h" #include "config.h" #include "crypto_rand.h" #include "crypto_util.h" +#include "ext_orport.h" #include "main.h" #include "proto_ext_or.h" #include "util.h" diff --git a/src/or/hs_client.c b/src/or/hs_client.c index f07426052e..26e8785d9f 100644 --- a/src/or/hs_client.c +++ b/src/or/hs_client.c @@ -9,31 +9,31 @@ #define HS_CLIENT_PRIVATE #include "or.h" -#include "hs_circuit.h" -#include "hs_ident.h" +#include "circpathbias.h" +#include "circuitbuild.h" +#include "circuitlist.h" +#include "circuituse.h" +#include "config.h" +#include "connection.h" #include "connection_edge.h" #include "container.h" #include "crypto_rand.h" #include "crypto_util.h" -#include "rendclient.h" -#include "hs_descriptor.h" +#include "directory.h" #include "hs_cache.h" #include "hs_cell.h" -#include "config.h" -#include "directory.h" +#include "hs_circuit.h" #include "hs_client.h" #include "hs_control.h" -#include "router.h" -#include "routerset.h" -#include "circuitlist.h" -#include "circuituse.h" -#include "connection.h" -#include "nodelist.h" -#include "circpathbias.h" +#include "hs_descriptor.h" +#include "hs_ident.h" #include "hs_ntor.h" -#include "circuitbuild.h" #include "networkstatus.h" +#include "nodelist.h" #include "reasons.h" +#include "rendclient.h" +#include "router.h" +#include "routerset.h" /* Return a human-readable string for the client fetch status code. */ static const char * diff --git a/src/or/rendclient.c b/src/or/rendclient.c index 61dde88692..7ef12a4faf 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -15,12 +15,13 @@ #include "config.h" #include "connection.h" #include "connection_edge.h" +#include "control.h" #include "crypto_rand.h" #include "crypto_util.h" #include "directory.h" -#include "hs_common.h" #include "hs_circuit.h" #include "hs_client.h" +#include "hs_common.h" #include "main.h" #include "networkstatus.h" #include "nodelist.h" @@ -31,7 +32,6 @@ #include "router.h" #include "routerlist.h" #include "routerset.h" -#include "control.h" static extend_info_t *rend_client_get_random_intro_impl( const rend_cache_entry_t *rend_query, diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 50ca04838c..3a7dfe28f8 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -16,18 +16,18 @@ #include "control.h" #include "crypto_rand.h" #include "crypto_util.h" +#include "hs_client.h" #include "hs_common.h" +#include "hs_intropoint.h" +#include "networkstatus.h" #include "rendclient.h" #include "rendcommon.h" #include "rendmid.h" -#include "hs_intropoint.h" -#include "hs_client.h" #include "rendservice.h" #include "rephist.h" #include "router.h" #include "routerlist.h" #include "routerparse.h" -#include "networkstatus.h" /** Return 0 if one and two are the same service ids, else -1 or 1 */ int diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 9967e139f5..b00b1c636f 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -56,27 +56,27 @@ #define ROUTERPARSE_PRIVATE #include "or.h" -#include "config.h" #include "circuitstats.h" +#include "config.h" #include "crypto_util.h" #include "dirserv.h" #include "dirvote.h" +#include "entrynodes.h" +#include "memarea.h" +#include "microdesc.h" +#include "networkstatus.h" #include "parsecommon.h" #include "policies.h" #include "protover.h" #include "rendcommon.h" -#include "router.h" -#include "routerlist.h" -#include "memarea.h" -#include "microdesc.h" -#include "networkstatus.h" #include "rephist.h" +#include "router.h" #include "routerkeys.h" +#include "routerlist.h" #include "routerparse.h" -#include "entrynodes.h" -#include "torcert.h" #include "sandbox.h" #include "shared_random.h" +#include "torcert.h" #undef log #include <math.h> |