Style: adds Cpp11BracedListStyle: Block

This commit is contained in:
李通洲
2026-03-30 10:27:23 +08:00
committed by Carter Li
parent 5f261702a9
commit 831659966f
189 changed files with 1724 additions and 1733 deletions
+8 -8
View File
@@ -28,10 +28,10 @@ bool detectUserBySystemd(const FFstrbuf* pathUsers, FFlist* users) {
// WARNING: This is private data. Do not parse
if (!ffParsePropFileValues(pathUsers->chars, 4, (FFpropquery[]) {
{"NAME=", &userName},
{"STATE=", &state},
{"REALTIME=", &loginTime},
{"ONLINE_SESSIONS=", &sessions},
{ "NAME=", &userName },
{ "STATE=", &state },
{ "REALTIME=", &loginTime },
{ "ONLINE_SESSIONS=", &sessions },
}) ||
!ffStrbufEqualS(&state, "active")) {
return false;
@@ -65,10 +65,10 @@ bool detectUserBySystemd(const FFstrbuf* pathUsers, FFlist* users) {
// WARNING: This is private data. Do not parse
if (ffParsePropFileValues(pathSessions.chars, 4, (FFpropquery[]) {
{"REMOTE_HOST=", &remoteHost},
{"TTY=", &tty},
{"SERVICE=", &service},
{"REALTIME=", &loginTime},
{ "REMOTE_HOST=", &remoteHost },
{ "TTY=", &tty },
{ "SERVICE=", &service },
{ "REALTIME=", &loginTime },
}) &&
!ffStrbufEqualS(&service, "systemd-user")) {
if (remoteHost.length) {