diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-07-30 12:37:09 +0200 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-04-26 10:41:45 +0100 |
commit | e53274868e0ec35156349826b0995bc444287690 (patch) | |
tree | 58ae5dc74e1b6621d7698c046559f932a759d349 /src/randomenv.cpp | |
parent | f436bfd126adaa64daba2e78016eb707e37eabce (diff) | |
download | bitcoin-e53274868e0ec35156349826b0995bc444287690.tar.xz |
Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)
Diffstat (limited to 'src/randomenv.cpp')
-rw-r--r-- | src/randomenv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/randomenv.cpp b/src/randomenv.cpp index 388841289a..53ebeb31cd 100644 --- a/src/randomenv.cpp +++ b/src/randomenv.cpp @@ -363,10 +363,10 @@ void RandAddStaticEnv(CSHA512& hasher) #if HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS // Network interfaces - struct ifaddrs *ifad = NULL; + struct ifaddrs *ifad = nullptr; getifaddrs(&ifad); struct ifaddrs *ifit = ifad; - while (ifit != NULL) { + while (ifit != nullptr) { hasher.Write((const unsigned char*)&ifit, sizeof(ifit)); hasher.Write((const unsigned char*)ifit->ifa_name, strlen(ifit->ifa_name) + 1); hasher.Write((const unsigned char*)&ifit->ifa_flags, sizeof(ifit->ifa_flags)); |