summaryrefslogtreecommitdiffstats
path: root/subopt-helper.h
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-27 17:35:06 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-27 17:35:06 +0000
commitdb5487225c3c410a671c242b1eccaf7877dbee74 (patch)
tree6fa2e6e877b48b4d0e9206afc550c024e3dbd11f /subopt-helper.h
parentb4196c01c7c330627fd9de34dec3a167f9a2dc28 (diff)
downloadmpv-db5487225c3c410a671c242b1eccaf7877dbee74.tar.bz2
mpv-db5487225c3c410a671c242b1eccaf7877dbee74.tar.xz
marks some read-only char* inside structs as const, patch by Stefan Huehner, stefan At huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19199 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subopt-helper.h')
-rw-r--r--subopt-helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/subopt-helper.h b/subopt-helper.h
index dad3e4d0e5..7b8bd8cb5f 100644
--- a/subopt-helper.h
+++ b/subopt-helper.h
@@ -20,7 +20,7 @@ typedef int (*opt_test_f)(void *);
/** simple structure for defining the option name, type and storage location */
typedef struct opt_s
{
- char * name; ///< string that identifies the option
+ const char * name; ///< string that identifies the option
int type; ///< option type as defined in subopt-helper.h
void * valp; ///< pointer to the mem where the value should be stored
opt_test_f test; ///< argument test func ( optional )