diff options
author | 2019-03-29 14:01:49 +0200 | |
---|---|---|
committer | 2019-03-29 14:45:44 +0200 | |
commit | de18684a25cdc1e310636c5f74d4e901881b5710 (patch) | |
tree | ecafbe8964adef080f9889a6d79790ffa11cb6cb /src/daemon/main.c | |
parent | 05a93fcf7f541e2e969820efa35375190fdc3ce6 (diff) | |
download | usurpation-de18684a25cdc1e310636c5f74d4e901881b5710.tar.gz usurpation-de18684a25cdc1e310636c5f74d4e901881b5710.tar.bz2 usurpation-de18684a25cdc1e310636c5f74d4e901881b5710.zip |
daemon: style adjustment
Fix style inconsistencies and move port settings to settings.c.
Part of Ticket 3.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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. |