aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/inet.c b/src/inet.c
index 839fe5f..fd16506 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -1,8 +1,6 @@
1/*=========================================================================*\ 1/*=========================================================================*\
2* Internet domain functions 2* Internet domain functions
3* LuaSocket toolkit 3* LuaSocket toolkit
4*
5* RCS ID: $Id: inet.c,v 1.28 2005/10/07 04:40:59 diego Exp $
6\*=========================================================================*/ 4\*=========================================================================*/
7#include <stdio.h> 5#include <stdio.h>
8#include <string.h> 6#include <string.h>
@@ -270,8 +268,8 @@ static void inet_pushresolved(lua_State *L, struct hostent *hp)
270/*-------------------------------------------------------------------------*\ 268/*-------------------------------------------------------------------------*\
271* Tries to create a new inet socket 269* Tries to create a new inet socket
272\*-------------------------------------------------------------------------*/ 270\*-------------------------------------------------------------------------*/
273const char *inet_trycreate(p_socket ps, int domain, int type) { 271const char *inet_trycreate(p_socket ps, int family, int type) {
274 return socket_strerror(socket_create(ps, domain, type, 0)); 272 return socket_strerror(socket_create(ps, family, type, 0));
275} 273}
276 274
277/*-------------------------------------------------------------------------*\ 275/*-------------------------------------------------------------------------*\