diff options
author | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-15 16:03:12 +0000 |
---|---|---|
committer | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-15 16:03:12 +0000 |
commit | 58ed2c3fe035313bfc7feca7fd18abb84fa4fad1 (patch) | |
tree | 75a071a62db73e1bfb50be8ae3caa0a8054f2ea2 /m_struct.h | |
parent | 9dd64b49e89cefd2158e8a5bb25798bd72ac2575 (diff) | |
download | mpv-58ed2c3fe035313bfc7feca7fd18abb84fa4fad1.tar.bz2 mpv-58ed2c3fe035313bfc7feca7fd18abb84fa4fad1.tar.xz |
marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19109 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_struct.h')
-rw-r--r-- | m_struct.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m_struct.h b/m_struct.h index 35cafc9951..2f7f16dffa 100644 --- a/m_struct.h +++ b/m_struct.h @@ -78,7 +78,7 @@ m_struct_set(m_struct_t* st, void* obj, char* field, char* param); * \param field Name of the field to reset, if NULL all fields are reseted. */ void -m_struct_reset(m_struct_t* st, void* obj, char* field); +m_struct_reset(m_struct_t* st, void* obj, const char* field); /// Create a copy of an existing struct. /** \param st Struct definiton. @@ -101,7 +101,7 @@ m_struct_free(m_struct_t* st, void* obj); * \return The \ref m_option struct describing the field or NULL if not found. */ struct m_option* -m_struct_get_field(m_struct_t* st,char* f); +m_struct_get_field(m_struct_t* st,const char* f); ///@} |