[MINOR] cfgparse: add support for warnings in external functions
Some parsers will need to report warnings in some cases. Let's
use positive values for that.
diff --git a/include/common/cfgparse.h b/include/common/cfgparse.h
index c5777f9..35e5614 100644
--- a/include/common/cfgparse.h
+++ b/include/common/cfgparse.h
@@ -36,7 +36,8 @@
struct cfg_keyword {
int section; /* section type for this keyword */
const char *kw; /* the keyword itself */
- int (*parse)(char **args, /* command line and arguments */
+ int (*parse)( /* 0=OK, <0=Alert, >0=Warning */
+ char **args, /* command line and arguments */
int section_type, /* current section CFG_{GLOBAL|LISTEN} */
struct proxy *curpx, /* current proxy (NULL in GLOBAL) */
struct proxy *defpx, /* default proxy (NULL in GLOBAL) */