diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-02-20 10:19:53 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-02-20 12:45:32 -0800 |
commit | 2b33f2bb4c01d4306fd46f78edf6e355a03e2ed7 (patch) | |
tree | 040c7e3e3df638b86f3c2c64fb99659e5a0210a9 /host/lib/transport/if_addrs.cpp | |
parent | 37ebaa6ad84e90c7d1d0d1133af008e9970a333f (diff) | |
download | uhd-2b33f2bb4c01d4306fd46f78edf6e355a03e2ed7.tar.gz uhd-2b33f2bb4c01d4306fd46f78edf6e355a03e2ed7.tar.bz2 uhd-2b33f2bb4c01d4306fd46f78edf6e355a03e2ed7.zip |
uhd: Replace NULL with nullptr in if_addrs and super_recv_packet_handler
This is not a functional change, but it marks the usage of nullptr in UHD.
Commits past this one may also use this C++11 feature.
Diffstat (limited to 'host/lib/transport/if_addrs.cpp')
-rw-r--r-- | host/lib/transport/if_addrs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/if_addrs.cpp b/host/lib/transport/if_addrs.cpp index 3b8be5dd5..37b41f303 100644 --- a/host/lib/transport/if_addrs.cpp +++ b/host/lib/transport/if_addrs.cpp @@ -36,9 +36,9 @@ std::vector<uhd::transport::if_addrs_t> uhd::transport::get_if_addrs(void){ std::vector<if_addrs_t> if_addrs; struct ifaddrs *ifap; if (getifaddrs(&ifap) == 0){ - for (struct ifaddrs *iter = ifap; iter != NULL; iter = iter->ifa_next){ + for (struct ifaddrs *iter = ifap; iter != nullptr; iter = iter->ifa_next){ //ensure that the entries are valid - if (iter->ifa_addr == NULL) continue; + if (iter->ifa_addr == nullptr) continue; if (iter->ifa_addr->sa_family != AF_INET) continue; if (iter->ifa_netmask->sa_family != AF_INET) continue; if (iter->ifa_broadaddr->sa_family != AF_INET) continue; |