Global: replaces NULL to nullptr

This commit is contained in:
李通洲
2026-07-10 18:08:04 +08:00
parent 873454191f
commit ba18705d2e
387 changed files with 2411 additions and 2411 deletions
+3 -3
View File
@@ -5,14 +5,14 @@
const char* ffDetectProcesses(uint32_t* result) {
FF_AUTO_CLOSE_DIR DIR* dir = opendir("/proc");
if (dir == NULL) {
if (dir == nullptr) {
return "opendir(\"/proc\") failed";
}
uint32_t num = 0;
struct dirent* entry;
while ((entry = readdir(dir)) != NULL) {
while ((entry = readdir(dir)) != nullptr) {
if (
#ifdef _DIRENT_HAVE_D_TYPE
(entry->d_type == DT_DIR || entry->d_type == DT_UNKNOWN) &&
@@ -23,5 +23,5 @@ const char* ffDetectProcesses(uint32_t* result) {
*result = num;
return NULL;
return nullptr;
}