Replaced a NULL with nullptr to fix an issue in make clang-tidy-quiet

This commit is contained in:
Bob-F
2018-07-30 22:58:39 -07:00
committed by Beat Küng
parent a9bb274001
commit f2e3c0b6e9
+1 -1
View File
@@ -1150,7 +1150,7 @@ Mavlink::find_broadcast_address()
const struct in_addr netmask_addr = query_netmask_addr(_socket_fd, *cur_ifreq);
const struct in_addr broadcast_addr = compute_broadcast_addr(sin_addr, netmask_addr);
if (_interface_name && strstr(cur_ifreq->ifr_name, _interface_name) == NULL) { continue; }
if (_interface_name && strstr(cur_ifreq->ifr_name, _interface_name) == nullptr) { continue; }
PX4_INFO("using network interface %s, IP: %s", cur_ifreq->ifr_name, inet_ntoa(sin_addr));
PX4_INFO("with netmask: %s", inet_ntoa(netmask_addr));