revert to gethostbyname for the moment
This commit is contained in:
parent
5c26b463d9
commit
a676b8c845
|
@ -1585,7 +1585,6 @@ struct hostent *sigar_gethostbyname(const char *name,
|
||||||
|
|
||||||
SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen)
|
SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen)
|
||||||
{
|
{
|
||||||
sigar_hostent_t data;
|
|
||||||
struct hostent *p;
|
struct hostent *p;
|
||||||
char domain[SIGAR_FQDN_LEN + 1];
|
char domain[SIGAR_FQDN_LEN + 1];
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
@ -1611,7 +1610,7 @@ SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX use _r versions of these functions. */
|
/* XXX use _r versions of these functions. */
|
||||||
if (!(p = sigar_gethostbyname(name, &data))) {
|
if (!(p = gethostbyname(name))) {
|
||||||
if (SIGAR_LOG_IS_DEBUG(sigar)) {
|
if (SIGAR_LOG_IS_DEBUG(sigar)) {
|
||||||
sigar_log_printf(sigar, SIGAR_LOG_DEBUG,
|
sigar_log_printf(sigar, SIGAR_LOG_DEBUG,
|
||||||
"[fqdn] gethostbyname(%s) failed: %s",
|
"[fqdn] gethostbyname(%s) failed: %s",
|
||||||
|
|
Loading…
Reference in New Issue