]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/utils.h
global config: Unify parsing, add additional checks
authorChristian Seiler <christian@iwakd.de>
Sun, 8 Sep 2013 11:38:55 +0000 (13:38 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Sep 2013 22:19:21 +0000 (18:19 -0400)
commitd0386d66058fbd62ee99415ee8f4475a011b7b8c
tree37cc56e6f67d8653eafbf7c22c2fc3818211ba7f
parent3fc7e0a593960e2a6c5523868a0393681209ffc4
global config: Unify parsing, add additional checks

Instead of duplicating the code for parsing the global config file for
each option, write one main function, lxc_global_config_value, that
does the parsing for an arbitrary option name and just call that
function from the existing ones.

Signed-off-by: Christian Seiler <christian@iwakd.de>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/utils.c
src/lxc/utils.h