clang-tidy: Replace NULL with nullptr
Replaced all instances of NULL with nullptr to improve type safety
and clarity, as nullptr is the modern C++ standard for null pointers.
Tested: Build verified
Change-Id: I35a696a754bf88e8b017984bad7e9f143ecfbb9e
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/logging_test.cpp b/logging_test.cpp
index 87d1da9..04630c3 100644
--- a/logging_test.cpp
+++ b/logging_test.cpp
@@ -238,9 +238,9 @@
return elog_test();
static struct option long_options[] = {
- {"help", no_argument, 0, 'h'},
- {"commit", required_argument, 0, 'c'},
- {0, 0, 0, 0}};
+ {"help", no_argument, nullptr, 'h'},
+ {"commit", required_argument, nullptr, 'c'},
+ {nullptr, 0, nullptr, 0}};
int option_index = 0;
while ((arg = getopt_long(argc, argv, "hc:", long_options,