summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7221f76)
raw | patch | inline | side by side (parent: 7221f76)
author | octo <octo> | |
Thu, 15 Dec 2005 06:58:39 +0000 (06:58 +0000) | ||
committer | octo <octo> | |
Thu, 15 Dec 2005 06:58:39 +0000 (06:58 +0000) |
Added a `break' where it was needed..
src/configfile.c | patch | blob | history |
diff --git a/src/configfile.c b/src/configfile.c
index 5cdd736065b262385aab98d170a323fcddd15875..cbe2de9f7807679d518f078cc96b978bef213f62 100644 (file)
--- a/src/configfile.c
+++ b/src/configfile.c
for (i = 0; i < cf_cb->keys_num; i++)
{
if (strcasecmp (cf_cb->keys[i], key) == 0)
+ {
ret = (*cf_cb->callback) (key, value);
+ break;
+ }
}
if (i >= cf_cb->keys_num)
for (i = 0; i < keys_num; i++)
{
- if (snprintf (buf, 64, "Module.%s", keys[i]) < 64)
+ if (snprintf (buf, 64, "Plugin.%s", keys[i]) < 64)
{
/* This may be called multiple times for the same
* `key', but apparently `lc_register_*' can handle
lc_register_callback ("Mode", SHORTOPT_NONE, LC_VAR_SECTION,
cf_callback_section_mode, NULL);
- lc_register_callback ("Module", SHORTOPT_NONE, LC_VAR_SECTION,
+ lc_register_callback ("Plugin", SHORTOPT_NONE, LC_VAR_SECTION,
cf_callback_section_module, NULL);
/*
* - Add more directives, such as `DefaultMode', `DataDir', `PIDFile', ...
*/
- lc_register_callback ("Mode.LoadModule", SHORTOPT_NONE,
+ lc_register_callback ("Mode.LoadPlugin", SHORTOPT_NONE,
LC_VAR_STRING, cf_callback_loadmodule,
NULL);