Browse Source

[1470] Move include of config.h before all other includes

Stephen Morris 13 years ago
parent
commit
f1104654a2

+ 1 - 3
src/bin/resolver/tests/response_scrubber_unittest.cc

@@ -12,15 +12,13 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
-// $Id$
+#include <config.h>
 
 #include <string>
 #include <iostream>
 
 #include <gtest/gtest.h>
 
-#include <config.h>
-
 #include <asiolink/io_endpoint.h>
 #include <asiolink/io_address.h>
 #include <netinet/in.h>

+ 2 - 2
src/lib/asiodns/dns_service.cc

@@ -12,14 +12,14 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
+#include <config.h>
+
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <unistd.h>             // for some IPC/network system calls
 
 #include <boost/lexical_cast.hpp>
 
-#include <config.h>
-
 #include <log/dummylog.h>
 
 #include <asio.hpp>

+ 2 - 2
src/lib/asiolink/io_service.cc

@@ -12,12 +12,12 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
+#include <config.h>
+
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <unistd.h>             // for some IPC/network system calls
 
-#include <config.h>
-
 #include <asio.hpp>
 #include <asiolink/io_service.h>
 

+ 2 - 2
src/lib/nsas/tests/nameserver_address_store_unittest.cc

@@ -16,6 +16,8 @@
 ///
 /// This file contains tests for the nameserver address store as a whole.
 
+#include <config.h>
+
 #include <algorithm>
 #include <cassert>
 #include <string.h>
@@ -26,8 +28,6 @@
 #include <boost/shared_ptr.hpp>
 #include <gtest/gtest.h>
 
-#include <config.h>
-
 #include <dns/rdataclass.h>
 #include <dns/rrclass.h>
 #include <dns/rrset.h>

+ 2 - 2
src/lib/resolve/recursive_query.cc

@@ -12,6 +12,8 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
+#include <config.h>
+
 #include <netinet/in.h>
 #include <stdlib.h>
 #include <sys/socket.h>
@@ -21,8 +23,6 @@
 #include <boost/lexical_cast.hpp>
 #include <boost/bind.hpp>
 
-#include <config.h>
-
 #include <dns/question.h>
 #include <dns/message.h>
 #include <dns/opcode.h>