@@ -410,8 +410,8 @@ mca_btl_tcp_proc_t *mca_btl_tcp_proc_create(opal_proc_t *proc)
410
410
}
411
411
412
412
/**
413
- * If the peer is physically located on another node, remove allinterfaces
414
- * that have the an IP address identical to any local interface (this will
413
+ * If the peer is physically located on another node, remove all interfaces
414
+ * that have an IP address identical to any local interface (this will
415
415
* remove all the local and virtual interfaces).
416
416
*/
417
417
size_t count = size / sizeof (mca_btl_tcp_modex_addr_t );
@@ -423,9 +423,9 @@ mca_btl_tcp_proc_t *mca_btl_tcp_proc_create(opal_proc_t *proc)
423
423
OPAL_LIST_FOREACH (local_iter , local_ifs , opal_if_t ) {
424
424
if (MCA_BTL_TCP_AF_INET == remote_addrs [i ].addr_family &&
425
425
AF_INET == local_iter -> af_family ) {
426
- if (! memcmp (& ((struct sockaddr_in * )& local_iter -> if_addr )-> sin_addr ,
427
- remote_addrs [i ].addr ,
428
- sizeof (struct in_addr ))) {
426
+ if (0 == memcmp (& ((struct sockaddr_in * )& local_iter -> if_addr )-> sin_addr ,
427
+ remote_addrs [i ].addr ,
428
+ sizeof (struct in_addr ))) {
429
429
/* we found a match */
430
430
inet_ntop (AF_INET , remote_addrs [i ].addr , tmp [0 ], 16 );
431
431
inet_ntop (AF_INET , & ((struct sockaddr_in * ) & local_iter -> if_addr )-> sin_addr ,
@@ -436,9 +436,9 @@ mca_btl_tcp_proc_t *mca_btl_tcp_proc_create(opal_proc_t *proc)
436
436
#if OPAL_ENABLE_IPV6
437
437
else if (MCA_BTL_TCP_AF_INET6 == remote_addrs [i ].addr_family &&
438
438
AF_INET6 == local_iter -> af_family ) {
439
- if (! memcmp (& ((struct sockaddr_in6 * ) & local_iter -> if_addr )-> sin6_addr ,
440
- remote_addrs [i ].addr ,
441
- sizeof (struct in6_addr ))) {
439
+ if (0 == memcmp (& ((struct sockaddr_in6 * ) & local_iter -> if_addr )-> sin6_addr ,
440
+ remote_addrs [i ].addr ,
441
+ sizeof (struct in6_addr ))) {
442
442
/* we found a match */
443
443
inet_ntop (AF_INET6 , remote_addrs [i ].addr , tmp [0 ], 16 );
444
444
inet_ntop (AF_INET6 , & ((struct sockaddr_in6 * ) & local_iter -> if_addr )-> sin6_addr ,
0 commit comments