--- libelwix/inc/elwix/anet.h 2016/05/18 12:47:42 1.10 +++ libelwix/inc/elwix/anet.h 2016/08/02 11:23:31 1.10.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: anet.h,v 1.10 2016/05/18 12:47:42 misho Exp $ +* $Id: anet.h,v 1.10.2.1 2016/08/02 11:23:31 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -141,9 +141,9 @@ const char *e_n2addr(sockaddr_t * __restrict addr, ait * @psHost = Hostname * @port = Port * @addr = Network address structure - * return: NULL error or !=NULL network structure + * return: 0 error or >0 network structure length */ -sockaddr_t *e_gethostbyname(const char *psHost, unsigned short port, +socklen_t e_gethostbyname(const char *psHost, unsigned short port, sockaddr_t * __restrict addr); /* * e_addrcmp() - Compare network addresses