Mercurial > mplayer.hg
comparison m_config.c @ 26288:6e53dfe38594
Add some const qualifiers to reduce warnings
author | uau |
---|---|
date | Wed, 02 Apr 2008 01:01:22 +0000 |
parents | afa125da85cf |
children | 7a36d5941fd8 |
comparison
equal
deleted
inserted
replaced
26287:1bee753acda2 | 26288:6e53dfe38594 |
---|---|
18 #include "help_mp.h" | 18 #include "help_mp.h" |
19 | 19 |
20 #define MAX_PROFILE_DEPTH 20 | 20 #define MAX_PROFILE_DEPTH 20 |
21 | 21 |
22 static int | 22 static int |
23 parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src); | 23 parse_profile(const m_option_t *opt, const char *name, char *param, void *dst, int src); |
24 | 24 |
25 static void | 25 static void |
26 set_profile(m_option_t *opt, void* dst, void* src); | 26 set_profile(const m_option_t *opt, void* dst, void* src); |
27 | 27 |
28 static int | 28 static int |
29 show_profile(m_option_t *opt, char* name, char *param); | 29 show_profile(m_option_t *opt, char* name, char *param); |
30 | 30 |
31 static void | 31 static void |
489 m_config_set_option(config,p->opts[2*i],p->opts[2*i+1]); | 489 m_config_set_option(config,p->opts[2*i],p->opts[2*i+1]); |
490 config->profile_depth--; | 490 config->profile_depth--; |
491 } | 491 } |
492 | 492 |
493 static int | 493 static int |
494 parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src) { | 494 parse_profile(const m_option_t *opt, const char *name, char *param, void *dst, int src) |
495 { | |
495 m_config_t* config = opt->priv; | 496 m_config_t* config = opt->priv; |
496 char** list = NULL; | 497 char** list = NULL; |
497 int i,r; | 498 int i,r; |
498 if(param && !strcmp(param,"help")) { | 499 if(param && !strcmp(param,"help")) { |
499 m_profile_t* p; | 500 m_profile_t* p; |
524 m_option_free(opt,&list); | 525 m_option_free(opt,&list); |
525 return r; | 526 return r; |
526 } | 527 } |
527 | 528 |
528 static void | 529 static void |
529 set_profile(m_option_t *opt, void* dst, void* src) { | 530 set_profile(const m_option_t *opt, void *dst, void *src) { |
530 m_config_t* config = opt->priv; | 531 m_config_t* config = opt->priv; |
531 m_profile_t* p; | 532 m_profile_t* p; |
532 char** list = NULL; | 533 char** list = NULL; |
533 int i; | 534 int i; |
534 if(!src || !*(char***)src) return; | 535 if(!src || !*(char***)src) return; |