/*
* SARG Squid Analysis Report Generator http://sarg.sourceforge.net
- * 1998, 2012
+ * 1998, 2015
*
* SARG donations:
* please look at http://sarg.sourceforge.net/donations.php
if (error==EAI_NONAME)
return(INRC_NotFound);
if (error!=0) {
- debuga(_("IP to name resolution (getnameinfo) on IP address %s failed with error %d - %s\n"),ip,error,gai_strerror(error));
+ debuga(__FILE__,__LINE__,_("IP to name resolution (getnameinfo) on IP address \"%s\" failed with error %d - %s\n"),ip,error,gai_strerror(error));
return(INRC_Error);
}
safe_strcpy(ip,host,ip_len);
struct in_addr addr;
struct hostent *hp;
char **p;
+#ifdef __linux
extern int h_errno;
+#endif
#ifdef HAVE_INET_ATON
if (inet_aton(ip,&addr) == 0)