author | Sebastian Harl <sh@tokkee.org> | |
Mon, 24 Mar 2008 11:06:49 +0000 (12:06 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 24 Mar 2008 11:13:44 +0000 (12:13 +0100) | ||
commit | 7aee817a090f1f825e68c3a0288a373c52e16e03 | |
tree | c4215606a630d0d0b477e4f9d033d254533903e7 | tree | snapshot |
parent | d92709332ac43db953605921d0d820b456223261 | commit | diff |
liboconfig: Include the filename in error messages.
As collectd now supports more than one config file, this is more
convenient.
A module-global variable is used for that purpose. If no filename is
available (e.g. if the user uses oconfig_parse_fh() directly), a string
like "<fd#X>" is used instead, where X is replaced by the file descriptor.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
As collectd now supports more than one config file, this is more
convenient.
A module-global variable is used for that purpose. If no filename is
available (e.g. if the user uses oconfig_parse_fh() directly), a string
like "<fd#X>" is used instead, where X is replaced by the file descriptor.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/liboconfig/oconfig.c | diff | blob | history | |
src/liboconfig/parser.y | diff | blob | history |