MINOR: configuration: File and line propagation
This patch permits to communicate file and line of the
configuration file at the configuration parser.
diff --git a/src/map.c b/src/map.c
index ea67151..16f86bb 100644
--- a/src/map.c
+++ b/src/map.c
@@ -114,7 +114,8 @@
* This function choose the indexation type (ebtree or list) according with
* the type of match needed.
*/
-static int sample_load_map(struct arg *arg, struct sample_conv *conv, char **err)
+static int sample_load_map(struct arg *arg, struct sample_conv *conv,
+ const char *file, int line, char **err)
{
struct map_descriptor *desc;
@@ -157,7 +158,7 @@
/* Load map. */
if (!pattern_read_from_file(&desc->pat, PAT_REF_MAP, arg[0].data.str.str, 0,
- 1, err, trash.str))
+ 1, err, trash.str, file, line))
return 0;
/* The second argument is the default value */