]> git.tuebingen.mpg.de Git - paraslash.git/commit
lsu: Add helper to merge config file options, convert server.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 14 Mar 2018 19:42:57 +0000 (20:42 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 22 Apr 2018 18:30:37 +0000 (20:30 +0200)
commit9320868a1baadbd7050af133d184eb10572c5a65
treeeae16a3c54089ce2486b1dfb2513da0e1132416c
parentebbea4043aa7c7f200e4f56c3bfa42f5c31f2e03
lsu: Add helper to merge config file options, convert server.

After the command line options have been parsed, most paraslash
executables read options from a config file. The two lopsub parse
result structures are then merged in a way that command line options
take preference over config file options. This logic is duplicated
in all executables.

This patch introduces a generic helper to eliminate the duplication.
The new lsu_merge_config_file_options() will eventually be employed
by all executables which need to parse the config file. This patch,
however, only converts para_server.
lsu.c
lsu.h
server.c