lint: apply new style

This commit is contained in:
2025-06-06 20:46:55 +02:00
parent d6a348c543
commit 7d76687833
19 changed files with 259 additions and 273 deletions

View File

@@ -11,12 +11,11 @@
#include "users.h"
#include "util.h"
int main(int argc, char *argv[]) {
if (argc == 2)
chvt_str(argv[1]);
int main(int argc, char* argv[]) {
if (argc == 2) chvt_str(argv[1]);
char *conf_override = getenv("LIDM_CONF");
struct config *config =
char* conf_override = getenv("LIDM_CONF");
struct config* config =
parse_config(conf_override == NULL ? "/etc/lidm.ini" : conf_override);
if (config == NULL) {
fprintf(stderr, "error parsing config\n");
@@ -28,6 +27,5 @@ int main(int argc, char *argv[]) {
struct Vector sessions = get_avaliable_sessions();
int ret = load(&users, &sessions);
if (ret == 0)
execl(argv[0], argv[0], NULL);
if (ret == 0) execl(argv[0], argv[0], NULL);
}