From 8c9a822ecde6ce9e0dd6f0a716b211cafc533331 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 3 Mar 2006 01:12:41 +0000 Subject: [PATCH] backout last change --- src/sigar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sigar.c b/src/sigar.c index 696c4193..c15edaf8 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -1585,6 +1585,7 @@ struct hostent *sigar_gethostbyname(const char *name, SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen) { + sigar_hostent_t data; struct hostent *p; char domain[SIGAR_FQDN_LEN + 1]; #ifdef WIN32 @@ -1610,7 +1611,7 @@ SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen) } /* XXX use _r versions of these functions. */ - if (!(p = gethostbyname(name))) { + if (!(p = sigar_gethostbyname(name, &data))) { if (SIGAR_LOG_IS_DEBUG(sigar)) { sigar_log_printf(sigar, SIGAR_LOG_DEBUG, "[fqdn] gethostbyname(%s) failed: %s",