mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -20,5 +20,5 @@ const char* ffDetectTPM(FFTPMResult* result) {
|
||||
ffStrbufTrimRightSpace(&result->description);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -47,5 +47,5 @@ const char* ffDetectTPM(FFTPMResult* result) {
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user