summaryrefslogtreecommitdiffstats
path: root/m_config.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 19:20:01 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 19:34:47 +0300
commite61ac5e9cb870c03e2404f5dd19cb0bb25aab80c (patch)
tree3acdb3fbf13e654722b18dd8c25e85737f1b24a7 /m_config.c
parentd2f4db51fb6cac300613c6f9c9c1260a2e63fba1 (diff)
downloadmpv-e61ac5e9cb870c03e2404f5dd19cb0bb25aab80c.tar.bz2
mpv-e61ac5e9cb870c03e2404f5dd19cb0bb25aab80c.tar.xz
m_config.c: Cosmetics: fix nested block lacking indentation
Diffstat (limited to 'm_config.c')
-rw-r--r--m_config.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/m_config.c b/m_config.c
index 09329ba287..024f7d713f 100644
--- a/m_config.c
+++ b/m_config.c
@@ -223,24 +223,25 @@ m_config_add_option(m_config_t *config, const m_option_t *arg, const char* prefi
}
}
if(!(co->flags & M_CFG_OPT_ALIAS)) {
- // Allocate a slot for the defaults
+ // Allocate a slot for the defaults
sl = talloc_zero_size(co, sizeof(m_config_save_slot_t) +
- arg->type->size);
- m_option_save(config, arg, sl->data);
- // Hack to avoid too much trouble with dynamically allocated data :
- // We always use a dynamic version
- if((arg->type->flags & M_OPT_TYPE_DYNAMIC) && arg->p && (*(void**)arg->p)) {
- *(void**)arg->p = NULL;
- m_option_set(config, arg, sl->data);
- }
- sl->lvl = 0;
- sl->prev = NULL;
- co->slots = talloc_zero_size(co, sizeof(m_config_save_slot_t) +
+ arg->type->size);
+ m_option_save(config, arg, sl->data);
+ // Hack to avoid too much trouble with dynamically allocated data :
+ // We always use a dynamic version
+ if ((arg->type->flags & M_OPT_TYPE_DYNAMIC) && arg->p
+ && (*(void**)arg->p)) {
+ *(void**)arg->p = NULL;
+ m_option_set(config, arg, sl->data);
+ }
+ sl->lvl = 0;
+ sl->prev = NULL;
+ co->slots = talloc_zero_size(co, sizeof(m_config_save_slot_t) +
arg->type->size);
- co->slots->prev = sl;
- co->slots->lvl = config->lvl;
- m_option_copy(co->opt,co->slots->data,sl->data);
- } // !M_OPT_ALIAS
+ co->slots->prev = sl;
+ co->slots->lvl = config->lvl;
+ m_option_copy(co->opt, co->slots->data, sl->data);
+ }
}
co->next = config->opts;
config->opts = co;