]> Chaos Git - corbenik/ctrulib.git/commitdiff
fixed some netinet/in.h formating
authorLectem <lectem@gmail.com>
Tue, 6 Oct 2015 15:16:29 +0000 (11:16 -0400)
committerLectem <lectem@gmail.com>
Tue, 6 Oct 2015 16:53:29 +0000 (12:53 -0400)
libctru/include/netinet/in.h

index 5d274b05f333482bea5aa04db9d3428553319ae4..795aa04490aaf85c3e6fc0ba9c9363b30db09385 100644 (file)
@@ -5,9 +5,9 @@
 
 #define INADDR_ANY       0x00000000
 #define INADDR_BROADCAST 0xFFFFFFFF
-#define INADDR_NONE             0xFFFFFFFF
+#define INADDR_NONE      0xFFFFFFFF
 
-#define INET_ADDRSTRLEN                16
+#define INET_ADDRSTRLEN  16
 
 /*
  * Protocols (See RFC 1700 and the IANA)
 #define IPPROTO_UDP        17               /* user datagram protocol */
 #define IPPROTO_TCP         6               /* tcp */
 
-#define        IP_TOS              7
-#define        IP_TTL              8
+#define IP_TOS              7
+#define IP_TTL              8
 #define IP_MULTICAST_LOOP   9
-#define        IP_MULTICAST_TTL   10
-#define        IP_ADD_MEMBERSHIP  11
-#define        IP_DROP_MEMBERSHIP 12
+#define IP_MULTICAST_TTL   10
+#define IP_ADD_MEMBERSHIP  11
+#define IP_DROP_MEMBERSHIP 12
 
 typedef uint16_t in_port_t;
 typedef uint32_t in_addr_t;
 
 struct in_addr {
-       in_addr_t       s_addr;
+       in_addr_t       s_addr;
 };
 
 struct sockaddr_in {
-       sa_family_t     sin_family;
-       in_port_t       sin_port;
-       struct in_addr  sin_addr;
-       unsigned char   sin_zero[8];
+       sa_family_t     sin_family;
+       in_port_t       sin_port;
+       struct in_addr  sin_addr;
+       unsigned char   sin_zero[8];
 };
 
 /* Request struct for multicast socket ops */