diff options
author | Yi Kong <yikong@google.com> | 2018-08-02 17:31:13 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-08-02 18:09:44 -0700 |
commit | 32bc0fcf69dfccb3726fe572833a38b01179580e (patch) | |
tree | abca656f500087493e0997d5cf38cbcc9ec98eb8 /tests/stack_protector_test.cpp | |
parent | 65f82092a17518080178ff7004cc6db362ebfbcd (diff) |
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: I5b4123bc6709641315120a191e36cc57541349b2
Diffstat (limited to 'tests/stack_protector_test.cpp')
-rw-r--r-- | tests/stack_protector_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stack_protector_test.cpp b/tests/stack_protector_test.cpp index 5f5a24174..34e3c1153 100644 --- a/tests/stack_protector_test.cpp +++ b/tests/stack_protector_test.cpp @@ -74,14 +74,14 @@ TEST(stack_protector, same_guard_per_thread) { size_t thread_count = 9; for (size_t i = 1; i < thread_count; ++i) { pthread_t t; - ASSERT_EQ(0, pthread_create(&t, NULL, [](void* arg) -> void* { + ASSERT_EQ(0, pthread_create(&t, nullptr, [](void* arg) -> void* { stack_protector_checker* checker = reinterpret_cast<stack_protector_checker*>(arg); checker->Check(); return nullptr; }, &checker)); void* result; ASSERT_EQ(0, pthread_join(t, &result)); - ASSERT_EQ(NULL, result); + ASSERT_EQ(nullptr, result); } ASSERT_EQ(thread_count, checker.tids.size()); |