From de18684a25cdc1e310636c5f74d4e901881b5710 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Fri, 29 Mar 2019 14:01:49 +0200 Subject: daemon: style adjustment Fix style inconsistencies and move port settings to settings.c. Part of Ticket 3. Signed-off-by: Gediminas Jakutis --- src/daemon/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/daemon/main.c') diff --git a/src/daemon/main.c b/src/daemon/main.c index a729f84..302a9ce 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -33,7 +33,9 @@ int main(int argc, char **argv) printf("Usurpation daemon version %s starting\n", version); - net_init(6996); // To do: get port from settings. + settings_init(); + net_init(setting_port()); /* TODO: get port from settings. */ + /* by default and if running by as a system service, the init system * needs to keep control of the process and thus only detach if * requested when ran manually by a user. -- cgit v1.2.3