mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-10 07:00:08 +01:00
Global: removes FFlist::elementSize
Improves performance of module Sound and PhysicalMemory
This commit is contained in:
@@ -27,7 +27,7 @@ next:
|
||||
}
|
||||
}
|
||||
|
||||
FFUserResult* user = (FFUserResult*) ffListAdd(users);
|
||||
FFUserResult* user = FF_LIST_ADD(FFUserResult, *users);
|
||||
ffStrbufInitS(&user->name, n.ut_name);
|
||||
ffStrbufInitS(&user->hostName, n.ut_host);
|
||||
ffStrbufInitS(&user->sessionName, n.ut_line);
|
||||
|
||||
@@ -27,7 +27,7 @@ const char* ffDetectUsers(FFUsersOptions* options, FFlist* users) {
|
||||
continue;
|
||||
}
|
||||
|
||||
FFUserResult* user = (FFUserResult*) ffListAdd(users);
|
||||
FFUserResult* user = FF_LIST_ADD(FFUserResult, *users);
|
||||
ffStrbufInitMove(&user->name, &userName);
|
||||
ffStrbufInitWS(&user->hostName, session->pHostName);
|
||||
ffStrbufInitWS(&user->sessionName, session->pSessionName);
|
||||
|
||||
Reference in New Issue
Block a user