diff options
author | Tom Gundersen <teg@jklm.no> | 2013-11-19 16:17:55 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-11-25 19:35:44 +0100 |
commit | 71a6151083d842b2f5bf04e50239f0bf85d34d2e (patch) | |
tree | b605629ce368cee108bf4e057847de8cf1a4541e /src/shared/install.c | |
parent | device: fix typo (diff) | |
download | systemd-71a6151083d842b2f5bf04e50239f0bf85d34d2e.tar.xz systemd-71a6151083d842b2f5bf04e50239f0bf85d34d2e.zip |
conf-parser: distinguish between multiple sections with the same name
Pass on the line on which a section was decleared to the parsers, so they
can distinguish between multiple sections (if they chose to). Currently
no parsers take advantage of this, but a follow-up patch will do that
to distinguish
[Address]
Address=192.168.0.1/24
Label=one
[Address]
Address=192.168.0.2/24
Label=two
from
[Address]
Address=192.168.0.1/24
Label=one
Address=192.168.0.2/24
Label=two
Diffstat (limited to 'src/shared/install.c')
-rw-r--r-- | src/shared/install.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/install.c b/src/shared/install.c index 16504eef0f..100ed69744 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -922,6 +922,7 @@ static int config_parse_also(const char *unit, const char *filename, unsigned line, const char *section, + unsigned section_line, const char *lvalue, int ltype, const char *rvalue, @@ -957,6 +958,7 @@ static int config_parse_user(const char *unit, const char *filename, unsigned line, const char *section, + unsigned section_line, const char *lvalue, int ltype, const char *rvalue, |