summaryrefslogtreecommitdiffstats
path: root/m_option.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 15:56:38 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 15:56:38 +0000
commit2e18988a04197bce8f26d373fe6a450e8de0ba81 (patch)
tree71d921c5824fa4c8858990187f39d17fbb774d99 /m_option.h
parent9870aa54e357b882b8172f4d3ce28d63545c4761 (diff)
downloadmpv-2e18988a04197bce8f26d373fe6a450e8de0ba81.tar.bz2
mpv-2e18988a04197bce8f26d373fe6a450e8de0ba81.tar.xz
Option print functions may not and do not modify value
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25257 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_option.h')
-rw-r--r--m_option.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/m_option.h b/m_option.h
index 8e9cd0d727..7c5d2efa91 100644
--- a/m_option.h
+++ b/m_option.h
@@ -204,7 +204,7 @@ struct m_option_type {
* \return An allocated string containing the text value or (void*)-1
* on error.
*/
- char* (*print)(const m_option_t* opt, void* val);
+ char* (*print)(const m_option_t* opt, const void* val);
/** \name
* These functions are called to save/set/restore the status of the
@@ -461,7 +461,7 @@ m_option_parse(const m_option_t* opt,const char *name, char *param, void* dst, i
/// Helper to print options, see \ref m_option_type::print.
inline static char*
-m_option_print(const m_option_t* opt, void* val_ptr) {
+m_option_print(const m_option_t* opt, const void* val_ptr) {
if(opt->type->print)
return opt->type->print(opt,val_ptr);
else