Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: I5b4123bc6709641315120a191e36cc57541349b2
diff --git a/libc/bionic/pthread_join.cpp b/libc/bionic/pthread_join.cpp
index be76c20..9aad458 100644
--- a/libc/bionic/pthread_join.cpp
+++ b/libc/bionic/pthread_join.cpp
@@ -39,7 +39,7 @@
}
pthread_internal_t* thread = __pthread_internal_find(t);
- if (thread == NULL) {
+ if (thread == nullptr) {
return ESRCH;
}
@@ -60,7 +60,7 @@
// Wait for the thread to actually exit, if it hasn't already.
while (*tid_ptr != 0) {
- __futex_wait(tid_ptr, tid, NULL);
+ __futex_wait(tid_ptr, tid, nullptr);
}
if (return_value) {