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
+2 -2
View File
@@ -10,7 +10,7 @@ const char* ffDetectTPM(FFTPMResult* result) {
ffStrbufSetStatic(&result->version, "2.0");
ffStrbufSetStatic(&result->description, "Apple Silicon Security");
return NULL;
return nullptr;
#else
@@ -21,7 +21,7 @@ const char* ffDetectTPM(FFTPMResult* result) {
if (t2Service) {
ffStrbufSetStatic(&result->version, "2.0");
ffStrbufSetStatic(&result->description, "Apple T2 Security Chip");
return NULL;
return nullptr;
}
#endif
+2 -2
View File
@@ -3,7 +3,7 @@
#include "common/kmod.h"
const char* ffDetectTPM(FFTPMResult* result) {
if (ffSysctlGetString("dev.tpmcrb.0.%desc", &result->description) != NULL) {
if (ffSysctlGetString("dev.tpmcrb.0.%desc", &result->description) != nullptr) {
if (!ffKmodLoaded("tpm")) {
return "`tpm` kernel module is not loaded";
}
@@ -18,5 +18,5 @@ const char* ffDetectTPM(FFTPMResult* result) {
ffStrbufSetStatic(&result->version, "unknown");
}
return NULL;
return nullptr;
}
+1 -1
View File
@@ -20,5 +20,5 @@ const char* ffDetectTPM(FFTPMResult* result) {
ffStrbufTrimRightSpace(&result->description);
}
return NULL;
return nullptr;
}
+1 -1
View File
@@ -47,5 +47,5 @@ const char* ffDetectTPM(FFTPMResult* result) {
break;
}
return NULL;
return nullptr;
}