1
1

Took me a couple of days, but finally tracked this one down. Some compilers/glibc's don't like composite test statements in a return and just randomly pick one of the two options.

So....don't do that!!!

This commit was SVN r24212.
Этот коммит содержится в:
Ralph Castain 2011-01-10 16:29:42 +00:00
родитель 02e60d326e
Коммит ac1853b5d8

Просмотреть файл

@ -474,7 +474,6 @@ int opal_ifkindextoname(int if_kindex, char* if_name, int length)
bool
opal_ifislocal(const char *hostname)
{
int ret;
#if OPAL_WANT_IPV6
char addrname[NI_MAXHOST]; /* should be larger than ADDRLEN, but I think
they really mean IFNAMESIZE */
@ -482,9 +481,11 @@ opal_ifislocal(const char *hostname)
char addrname[ADDRLEN + 1];
#endif
ret = opal_ifaddrtoname(hostname, addrname, ADDRLEN);
if (OPAL_SUCCESS == opal_ifaddrtoname(hostname, addrname, ADDRLEN)) {
return true;
}
return (OPAL_SUCCESS == ret) ? true : false;
return false;
}
static uint32_t parse_dots(char *addr)