From b06b0051c5fee1c0eafa87f164fe0b8f4e27e5ef Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 17 Apr 2002 01:17:24 +0000 Subject: New wrapper around gethostbyaddr_r if the system has it, else a whole new 2002-04-16 Jeffrey Stedfast * e-host-utils.c (e_gethostbyaddr_r): New wrapper around gethostbyaddr_r if the system has it, else a whole new implementation. svn path=/trunk/; revision=16483 --- e-util/e-host-utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'e-util/e-host-utils.h') diff --git a/e-util/e-host-utils.h b/e-util/e-host-utils.h index 3153cc7581..543a9d3cc2 100644 --- a/e-util/e-host-utils.h +++ b/e-util/e-host-utils.h @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * - * Author: Chris Toshok + * Authors: Chris Toshok, Jeffrey Stedfast */ #ifndef E_HOST_UTILS_H @@ -31,6 +31,8 @@ *only* use this - it can't even coexist with naked calls to gethostbyname (even if they exist in libraries.) yes, this loses in many ways. blame your local OS developer. */ -int e_gethostbyname_r (const char *name, struct hostent *host, char *buf, int buflen, int *herr); +int e_gethostbyname_r (const char *name, struct hostent *host, char *buf, size_t buflen, int *herr); + +int e_gethostbyaddr_r (const char *addr, int len, int type, struct hostent *host, char *buf, size_t buflen, int *herr); #endif /* E_HOST_UTILS_H */ -- cgit