From: <dg...@us...> - 2007-02-20 00:01:21
|
Update of /cvsroot/xine/xine-lib/src/xine-engine In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11382/src/xine-engine Modified Files: configfile.c configfile.h Log Message: Reduce warnings to one, that seems to be caused by GCC counting compatibility wrong. Index: configfile.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-engine/configfile.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- configfile.c 19 Feb 2007 23:53:40 -0000 1.83 +++ configfile.c 20 Feb 2007 00:01:19 -0000 1.84 @@ -689,9 +689,9 @@ return entry->num_value; } -static int config_parse_enum (const char *str, char **values) { +static int config_parse_enum (const char *str, const char **values) { - char **value; + const char **value; int i; @@ -725,7 +725,8 @@ void *cb_data) { cfg_entry_t *entry; - char **value_src, **value_dest; + const char **value_src; + char **value_dest; int value_count; Index: configfile.h =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-engine/configfile.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- configfile.h 19 Feb 2007 23:53:40 -0000 1.40 +++ configfile.h 20 Feb 2007 00:01:19 -0000 1.41 @@ -163,7 +163,7 @@ void (*update_string) (config_values_t *self, const char *key, const char *value); /* small utility function for enum handling */ - int (*parse_enum) (const char *str, char **values); + int (*parse_enum) (const char *str, const char **values); /* * lookup config entries |