diff options
Diffstat (limited to 'Source/charon/socket.c')
-rw-r--r-- | Source/charon/socket.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/charon/socket.c b/Source/charon/socket.c index 1f1336fae..563f2b7a4 100644 --- a/Source/charon/socket.c +++ b/Source/charon/socket.c @@ -34,8 +34,9 @@ #include <pluto/defs.h> +typedef struct private_socket_s private_socket_t; -typedef struct { +struct private_socket_s{ /** * public functions */ @@ -45,7 +46,7 @@ typedef struct { * currently we only have one socket, maybe more in the future ? */ int socket_fd; -} private_socket_t; +}; /** * implementation of socket_t.receive @@ -111,7 +112,7 @@ status_t destroy(private_socket_t *this) socket_t *socket_create(u_int16_t port) { - private_socket_t *this = alloc_thing(socket_t, "private_socket_t"); + private_socket_t *this = alloc_thing(private_socket_t, "private_socket_t"); struct sockaddr_in addr; /* public functions */ |