summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/print_ip_addr.c5
-rw-r--r--src/print_ipv6_addr.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/src/print_ip_addr.c b/src/print_ip_addr.c
index e97edaa..778427c 100644
--- a/src/print_ip_addr.c
+++ b/src/print_ip_addr.c
@@ -1,7 +1,8 @@
// vim:ts=8:expandtab
-#include <netinet/in.h>
-#include <sys/socket.h>
#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/print_ipv6_addr.c b/src/print_ipv6_addr.c
index be64ba3..21974f3 100644
--- a/src/print_ipv6_addr.c
+++ b/src/print_ipv6_addr.c
@@ -1,13 +1,15 @@
// vim:ts=8:expandtab
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
-#include <arpa/inet.h>
#include <yajl/yajl_gen.h>
#include <yajl/yajl_version.h>