Mercurial > mplayer.hg
diff m_struct.c @ 19104:2ec2301183cd
marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org
| author | reynaldo |
|---|---|
| date | Sat, 15 Jul 2006 16:03:12 +0000 |
| parents | 96568be4bfdc |
| children | 49a433e2e78f |
line wrap: on
line diff
--- a/m_struct.c Sat Jul 15 15:27:09 2006 +0000 +++ b/m_struct.c Sat Jul 15 16:03:12 2006 +0000 @@ -12,7 +12,7 @@ #include "mp_msg.h" m_option_t* -m_struct_get_field(m_struct_t* st,char* f) { +m_struct_get_field(m_struct_t* st,const char* f) { int i; for(i = 0 ; st->fields[i].name ; i++) { @@ -70,7 +70,7 @@ } void -m_struct_reset(m_struct_t* st, void* obj, char* field) { +m_struct_reset(m_struct_t* st, void* obj, const char* field) { m_option_t* f; if(!field) { // Reset all options
