]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Moved include of config.h above all other includes.
authorRoger Wolff <R.E.Wolff@BitWizard.nl>
Sat, 26 Oct 2013 17:13:48 +0000 (19:13 +0200)
committerRoger Wolff <R.E.Wolff@BitWizard.nl>
Sat, 26 Oct 2013 17:13:48 +0000 (19:13 +0200)
13 files changed:
asn.c
curses.c
display.c
dns.c
getopt.c
getopt1.c
gtk.c
mtr.c
net.c
raw.c
report.c
select.c
split.c

diff --git a/asn.c b/asn.c
index eac8d5e7c7bd890687fd91fc3437b881c341631e..33622cafc8710746a09480c71a6af9a857d94e70 100644 (file)
--- a/asn.c
+++ b/asn.c
@@ -16,6 +16,8 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include "config.h"
+
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -35,7 +37,6 @@
 #include <sys/socket.h>
 #include <search.h>
 
-#include "config.h"
 #include "mtr.h"
 #include "asn.h"
 
index eacc40d9c6043e431e2af113c8b3f0fe285a61c6..b96daee6149644941b382b05c15c13f36e7488fb 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -16,7 +16,8 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
+
 #include <strings.h>
 #include <unistd.h>
 
index aa369ee18b20885c134a980e134f8cde617ea1e3..3545467896968d740182be6bc7693af4de36d0bb 100644 (file)
--- a/display.c
+++ b/display.c
@@ -16,7 +16,8 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
diff --git a/dns.c b/dns.c
index e89fd4bcd959e4ee66abbaac0e05e0ec86dd5c46..4076b71d624e43c5959335821698f0f6c89ec1fc 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -22,7 +22,8 @@
     Released under GPL, as above.
 */
 
-#include <config.h>
+#include "config.h"
+
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/select.h>
index 3d43e26d950d35f06d545c65d5c90894b5e4fd1d..e2f875891d327d1aef907b4abe8a8f96d0e5be83 100644 (file)
--- a/getopt.c
+++ b/getopt.c
@@ -27,7 +27,7 @@
 #endif
 
 #ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
 #endif
 
 #if !defined (__STDC__) || !__STDC__
index bccf8b2153361c8243730bec4909463d35826eff..0a2d405fb3563ef3e49165d243a227c2000aa5a5 100644 (file)
--- a/getopt1.c
+++ b/getopt1.c
@@ -16,7 +16,7 @@
    Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 \f
 #ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
 #endif
 
 #include "getopt.h"
diff --git a/gtk.c b/gtk.c
index 38ed507ceeaf742f0faf2f80a6e45cfe03a62bb3..7faa1323f3db93f7623df989b5a10464dc2e152e 100644 (file)
--- a/gtk.c
+++ b/gtk.c
@@ -17,7 +17,7 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
 
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/mtr.c b/mtr.c
index 50eb46464571edb6f83a41f15de95113c0126cae..416b744bb310535988127448ecfc686c329239f8 100644 (file)
--- a/mtr.c
+++ b/mtr.c
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include "config.h"
+
 #include <sys/types.h>
-#include <config.h>
-#include <netdb.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
 #include <unistd.h>
-#include <strings.h>
-#include <time.h>
 #include <errno.h>
 #include <string.h>
+#include <strings.h>
+
+#include <netdb.h>
+#include <netinet/in.h>
+#include <sys/socket.h>
+#include <time.h>
 #include <ctype.h>
 #include <assert.h>
 #include <fcntl.h>
diff --git a/net.c b/net.c
index 1c8d28f3569eb210b301c9d1e6614d9290e44481..d648804d009ce18ec6d0d4d956fcedafce2bb9f5 100644 (file)
--- a/net.c
+++ b/net.c
@@ -16,7 +16,7 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
 
 #if defined(HAVE_SYS_XTI_H)
 #include <sys/xti.h>
@@ -1562,4 +1562,4 @@ void net_harvest_fds(void)
   net_add_fds(&writefd, &maxfd);
   select(maxfd, NULL, &writefd, NULL, &tv);
   net_process_fds(&writefd);
-}
\ No newline at end of file
+}
diff --git a/raw.c b/raw.c
index 8b0df4737586d037423f78a6035f157f41433239..0e1f4f46eddf5b1dee2673f3daf016bbc86e48be 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -18,7 +18,8 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
+
 #include <ctype.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -27,7 +28,6 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-
 #include "mtr.h"
 #include "raw.h"
 #include "net.h"
index 71040e48933357459b4374084895844c07714281..39b2fb2e9cb52e5c90c58f0e79ad9a7f2df03833 100644 (file)
--- a/report.c
+++ b/report.c
@@ -16,7 +16,8 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
+
 #include <sys/types.h>
 #include <stdio.h>
 #include <netdb.h>
index 31bfd5fdabd66d5ee701314c317f3d0409ea347b..7553675bf9213ae5c1b9773038be1d6fd7890a24 100644 (file)
--- a/select.c
+++ b/select.c
@@ -16,7 +16,8 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
+
 #include <sys/types.h>
 #include <sys/time.h>
 #include <stdlib.h>
diff --git a/split.c b/split.c
index 642353ed5bf48905c6d83987c0c519a0ea3fc5ba..5ead23538b94df0b040d6cf4c258583bcc77a736 100644 (file)
--- a/split.c
+++ b/split.c
@@ -20,7 +20,8 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <config.h>
+#include "config.h"
+
 #include <ctype.h>
 #include <stdlib.h>
 #include <stdio.h>