Mercurial > mplayer.hg
diff subopt-helper.h @ 19194:5949a654e2d4
marks some read-only char* inside structs as const, patch by Stefan Huehner, stefan At huehner-org
author | reynaldo |
---|---|
date | Thu, 27 Jul 2006 17:35:06 +0000 |
parents | 2ec2301183cd |
children | 3baf6a2283da |
line wrap: on
line diff
--- a/subopt-helper.h Thu Jul 27 10:52:40 2006 +0000 +++ b/subopt-helper.h Thu Jul 27 17:35:06 2006 +0000 @@ -20,7 +20,7 @@ /** 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 )