]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
gui: Unify config file parsing.
authorAndre Noll <maan@systemlinux.org>
Tue, 7 Jan 2014 22:04:21 +0000 (22:04 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 13:48:54 +0000 (15:48 +0200)
The gui config file is parsed on startup, when the reload command
is executed or when SIGUSR1 is received. In all cases we set up a
gengetopt params structure and pass its address to the gengetopt
command line parser.

This commit moves the common code to the new parse_config_file_or_die()
which does the right thing for both the startup and the reload
case. The new function also contains the logic of configfile_exists(),
so this latter function can be removed.


No differences found