mirror of
https://github.com/javalsai/lidm.git
synced 2025-09-05 04:28:00 +02:00
feat: modernize config
- config now is more toml like
- no need to declare all fields, it implements defaults
- no yanderedev code, introspection babbyyy 😎
- desktop and config files parser semi-unification
- misc tweaks all over (mainly allocation failures handling)
This commit is contained in:
@@ -42,7 +42,7 @@ int build_user(struct user* NNULLABLE user, struct passwd* p) {
|
||||
// NOLINTNEXTLINE(modernize-macro-to-enum)
|
||||
#define LIKELY_BOUND_USERS 4
|
||||
struct Vector get_human_users() {
|
||||
struct Vector users = vec_new();
|
||||
struct Vector users = VEC_NEW;
|
||||
vec_reserve(&users, LIKELY_BOUND_USERS);
|
||||
|
||||
struct passwd* NULLABLE pwd;
|
||||
|
Reference in New Issue
Block a user