Chore: run clang-format

```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
This commit is contained in:
李通洲
2026-03-29 09:28:49 +08:00
parent cdd4cee968
commit e0eba8ce21
690 changed files with 28093 additions and 30062 deletions
+8 -6
View File
@@ -1,19 +1,21 @@
#include "common/kmod.h"
#include "common/io.h"
bool ffKmodLoaded(const char* modName)
{
bool ffKmodLoaded(const char* modName) {
static FFstrbuf modules;
if (modules.chars == NULL)
{
if (modules.chars == NULL) {
ffStrbufInitS(&modules, "\n");
ffAppendFileBuffer("/proc/modules", &modules);
}
if (modules.length == 0) return false;
if (modules.length == 0) {
return false;
}
uint32_t len = (uint32_t) strlen(modName);
if (len > 250) return false;
if (len > 250) {
return false;
}
char temp[256];
temp[0] = '\n';