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.
Этот коммит содержится в:
родитель
02e60d326e
Коммит
ac1853b5d8
@ -474,7 +474,6 @@ int opal_ifkindextoname(int if_kindex, char* if_name, int length)
|
|||||||
bool
|
bool
|
||||||
opal_ifislocal(const char *hostname)
|
opal_ifislocal(const char *hostname)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
#if OPAL_WANT_IPV6
|
#if OPAL_WANT_IPV6
|
||||||
char addrname[NI_MAXHOST]; /* should be larger than ADDRLEN, but I think
|
char addrname[NI_MAXHOST]; /* should be larger than ADDRLEN, but I think
|
||||||
they really mean IFNAMESIZE */
|
they really mean IFNAMESIZE */
|
||||||
@ -482,9 +481,11 @@ opal_ifislocal(const char *hostname)
|
|||||||
char addrname[ADDRLEN + 1];
|
char addrname[ADDRLEN + 1];
|
||||||
#endif
|
#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)
|
static uint32_t parse_dots(char *addr)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user