summaryrefslogtreecommitdiff
path: root/src/net/tcp.h
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
committerxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
commitc8a9209d77a896bf49227e5aeccd54e91ccf29cc (patch)
tree6b7367406ebbc6ce3ea5e0c8668c75f6fb3f6ae9 /src/net/tcp.h
parentcb9deba915dd7b114eeb76601eb1c8b07c1ba90f (diff)
Changed style of the code to the K&R standard
Diffstat (limited to 'src/net/tcp.h')
-rw-r--r--src/net/tcp.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/net/tcp.h b/src/net/tcp.h
index 4dcc5f4..88b2c4e 100644
--- a/src/net/tcp.h
+++ b/src/net/tcp.h
@@ -1,27 +1,26 @@
#ifndef MY_TCP_H
-#define MY_TCP_H
-#include "main.h"
+# define MY_TCP_H
+# include "main.h"
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netinet/tcp.h>
+# include <sys/socket.h>
+# include <netinet/in.h>
+# include <netinet/tcp.h>
-#define SUPPORT_IPv6
+# define SUPPORT_IPv6
-#define PROTO_TCPv4 0
-#define PROTO_TCPv6 1
+# define PROTO_TCPv4 0
+# define PROTO_TCPv6 1
-typedef struct struct_sock_tcp_t
-{
- int sock;
- int proto;
+typedef struct struct_sock_tcp_t {
+ int sock;
+ int proto;
- struct sockaddr_in sockAddr;
-#ifdef SUPPORT_IPv6
- struct sockaddr_in6 sockAddr6;
-#endif
+ struct sockaddr_in sockAddr;
+# ifdef SUPPORT_IPv6
+ struct sockaddr_in6 sockAddr6;
+# endif
} sock_tcp_t;
extern sock_tcp_t *newSockTcp(int proto);