summaryrefslogtreecommitdiffstats
path: root/m_config.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:26:13 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:34:35 +0300
commit0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch)
tree71cb9bd9ed121156d3382066c0722c73189afe04 /m_config.c
parent6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff)
downloadmpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2
mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz
Remove trailing whitespace from most files
Diffstat (limited to 'm_config.c')
-rw-r--r--m_config.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/m_config.c b/m_config.c
index 6a76b69af9..3f7d32407d 100644
--- a/m_config.c
+++ b/m_config.c
@@ -129,8 +129,8 @@ m_config_push(m_config_t* config) {
// Update the current status
m_option_save(config, co->opt, co->slots->data);
-
- // Allocate a new slot
+
+ // Allocate a new slot
slot = talloc_zero_size(co, sizeof(m_config_save_slot_t) +
co->opt->type->size);
slot->lvl = config->lvl;
@@ -140,7 +140,7 @@ m_config_push(m_config_t* config) {
// Reset our set flag
co->flags &= ~M_CFG_OPT_SET;
}
-
+
mp_msg(MSGT_CFGPARSER, MSGL_DBG2,"Config pushed level is now %d\n",config->lvl);
}
@@ -164,7 +164,7 @@ m_config_pop(m_config_t* config) {
continue;
if(co->slots->lvl > config->lvl)
mp_tmsg(MSGT_CFGPARSER, MSGL_WARN,"Save slot found from lvl %d is too old: %d !!!\n",config->lvl,co->slots->lvl);
-
+
while(co->slots->lvl >= config->lvl) {
m_option_free(co->opt,co->slots->data);
slot = co->slots;
@@ -266,13 +266,13 @@ m_config_register_options(m_config_t *config, const m_option_t *args) {
return 1;
}
-static m_config_option_t*
+static m_config_option_t*
m_config_get_co(m_config_t *config, char* arg) {
m_config_option_t *co;
for(co = config->opts ; co ; co = co->next ) {
int l = strlen(co->name) - 1;
- if((co->opt->type->flags & M_OPT_TYPE_ALLOW_WILDCARD) &&
+ if((co->opt->type->flags & M_OPT_TYPE_ALLOW_WILDCARD) &&
(co->name[l] == '*')) {
if(strncasecmp(co->name,arg,l) == 0)
return co;
@@ -351,7 +351,7 @@ m_config_parse_option(m_config_t *config, char* arg, char* param,int set) {
free(lst[2*i]);
free(lst[2*i+1]);
}
- if(lst) free(lst);
+ if(lst) free(lst);
} else
r = m_option_parse(co->opt,arg,param,set ? co->slots->data : NULL,config->mode);
@@ -506,7 +506,7 @@ parse_profile(const m_option_t *opt, const char *name, char *param, void *dst, i
mp_msg(MSGT_CFGPARSER, MSGL_INFO, "\n");
return M_OPT_EXIT-1;
}
-
+
r = m_option_type_string_list.parse(opt,name,param,&list,src);
if(r < 0) return r;
if(!list || !list[0]) return M_OPT_INVALID;
@@ -558,10 +558,10 @@ show_profile(m_option_t *opt, char* name, char *param) {
for(j = 0 ; j < config->profile_depth ; j++)
spc[j] = ' ';
spc[config->profile_depth] = '\0';
-
+
mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s%s=%s\n", spc,
p->opts[2*i], p->opts[2*i+1]);
-
+
if(config->profile_depth < MAX_PROFILE_DEPTH &&
!strcmp(p->opts[2*i],"profile")) {