diff options
Diffstat (limited to 'src/LYReadCFG.c')
-rw-r--r-- | src/LYReadCFG.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c index 26d8ebc6..ea6845d3 100644 --- a/src/LYReadCFG.c +++ b/src/LYReadCFG.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYReadCFG.c,v 1.167 2012/02/10 01:10:22 tom Exp $ + * $LynxId: LYReadCFG.c,v 1.168 2012/08/13 00:09:29 tom Exp $ */ #ifndef NO_RULES #include <HTRules.h> @@ -1904,9 +1904,10 @@ typedef BOOL (optidx_set_t)[NOPTS_]; * For simple (boolean, string, integer, time) values, set the corresponding * configuration variable. */ -void LYSetConfigValue(const char *name, +BOOL LYSetConfigValue(const char *name, const char *param) { + BOOL changed = TRUE; char *value = NULL; Config_Type *tbl = lookup_config(name); ParseUnionPtr q = ParseUnionOf(tbl); @@ -2012,9 +2013,12 @@ void LYSetConfigValue(const char *name, break; default: + changed = FALSE; break; } FREE(value); + + return changed; } /* |