Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: I226a0599db4f7c3557e55cade7869d00bd314949
diff --git a/server/ClatdController.cpp b/server/ClatdController.cpp
index 5ab5e72..5606d4d 100644
--- a/server/ClatdController.cpp
+++ b/server/ClatdController.cpp
@@ -99,7 +99,7 @@
netIdString,
(char *) "-m",
fwmarkString,
- NULL
+ nullptr
};
if (execv(kClatdPath, args)) {
@@ -127,7 +127,7 @@
ALOGD("Stopping clatd pid=%d on %s", pid, interface);
kill(pid, SIGTERM);
- waitpid(pid, NULL, 0);
+ waitpid(pid, nullptr, 0);
mClatdPids.erase(interface);
ALOGD("clatd on %s stopped", interface);
@@ -141,7 +141,7 @@
if (pid == 0) {
return false;
}
- waitpid_status = waitpid(pid, NULL, WNOHANG);
+ waitpid_status = waitpid(pid, nullptr, WNOHANG);
if (waitpid_status != 0) {
mClatdPids.erase(interface); // child exited, don't call waitpid on it again
}