]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Replaced a NULL not accepted by old GCC in C++0x mode by a cast
authorFrancis Dupont <fdupont@isc.org>
Fri, 9 Dec 2016 15:05:09 +0000 (16:05 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 9 Dec 2016 15:05:09 +0000 (16:05 +0100)
src/lib/util/memory_segment_local.cc

index 67625dc3d6fd277fed81567b288ba5e56b1ccdb4..b0ac0869ab24ba3cf4349777c3ec57285444dec5 100644 (file)
@@ -50,7 +50,7 @@ MemorySegmentLocal::getNamedAddressImpl(const char* name) const {
     if (found != named_addrs_.end()) {
         return (NamedAddressResult(true, found->second));
     }
-    return (NamedAddressResult(false, NULL));
+    return (NamedAddressResult(false, static_cast<void*>(0)));
 }
 
 bool