diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-28 10:47:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-28 10:47:46 -0400 |
commit | 94bff894f9e127888f15ec2333f86d0388e4da7d (patch) | |
tree | aa46d8004f3b51ef99484ac8ade17f78ce418ac3 /src/test | |
parent | c1bfa65211257e5efb89c5ebc534339d52fa77c4 (diff) | |
download | tor-94bff894f9e127888f15ec2333f86d0388e4da7d.tar.gz tor-94bff894f9e127888f15ec2333f86d0388e4da7d.zip |
Fix a large pile of solaris warnings for bug 19767.
In nearly all cases, this is a matter of making sure that we include
orconfig.h before we include any standard c headers.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-child.c | 2 | ||||
-rw-r--r-- | src/test/test-memwipe.c | 1 | ||||
-rw-r--r-- | src/test/test_channeltls.c | 2 | ||||
-rw-r--r-- | src/test/test_scheduler.c | 4 | ||||
-rw-r--r-- | src/test/test_status.c | 2 |
5 files changed, 8 insertions, 3 deletions
diff --git a/src/test/test-child.c b/src/test/test-child.c index e2552a499d..fdf3ccec0a 100644 --- a/src/test/test-child.c +++ b/src/test/test-child.c @@ -1,8 +1,8 @@ /* Copyright (c) 2011-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ -#include <stdio.h> #include "orconfig.h" +#include <stdio.h> #ifdef _WIN32 #define WINDOWS_LEAN_AND_MEAN #include <windows.h> diff --git a/src/test/test-memwipe.c b/src/test/test-memwipe.c index 5d4fcec664..2689b95366 100644 --- a/src/test/test-memwipe.c +++ b/src/test/test-memwipe.c @@ -1,3 +1,4 @@ +#include "orconfig.h" #include <string.h> #include <stdio.h> #include <sys/types.h> diff --git a/src/test/test_channeltls.c b/src/test/test_channeltls.c index 04ae9a6da7..fda466fc82 100644 --- a/src/test/test_channeltls.c +++ b/src/test/test_channeltls.c @@ -1,6 +1,8 @@ /* Copyright (c) 2014-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ +#include "orconfig.h" + #include <math.h> #define TOR_CHANNEL_INTERNAL_ diff --git a/src/test/test_scheduler.c b/src/test/test_scheduler.c index 6e9889b48b..db331cb662 100644 --- a/src/test/test_scheduler.c +++ b/src/test/test_scheduler.c @@ -1,10 +1,10 @@ /* Copyright (c) 2014-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ -#include <math.h> - #include "orconfig.h" +#include <math.h> + /* Libevent stuff */ #ifdef HAVE_EVENT2_EVENT_H #include <event2/event.h> diff --git a/src/test/test_status.c b/src/test/test_status.c index 84a0f6c024..1f4ec0a83e 100644 --- a/src/test/test_status.c +++ b/src/test/test_status.c @@ -3,6 +3,8 @@ #define LOG_PRIVATE #define REPHIST_PRIVATE +#include "orconfig.h" + #include <float.h> #include <math.h> |