summaryrefslogtreecommitdiffstats
path: root/m_struct.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-15 16:03:12 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-15 16:03:12 +0000
commit58ed2c3fe035313bfc7feca7fd18abb84fa4fad1 (patch)
tree75a071a62db73e1bfb50be8ae3caa0a8054f2ea2 /m_struct.c
parent9dd64b49e89cefd2158e8a5bb25798bd72ac2575 (diff)
downloadmpv-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.c')
-rw-r--r--m_struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/m_struct.c b/m_struct.c
index 3a8d1a38ee..f6b114ec12 100644
--- a/m_struct.c
+++ b/m_struct.c
@@ -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 @@ m_struct_set(m_struct_t* st, void* obj, char* field, char* param) {
}
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