From 2802ec520af5d4ef87d2030789f7df7a2a0da0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 20 Feb 2007 00:01:19 +0000 Subject: Reduce warnings to one, that seems to be caused by GCC counting compatibility wrong. CVS patchset: 8606 CVS date: 2007/02/20 00:01:19 --- src/xine-engine/configfile.c | 9 +++++---- src/xine-engine/configfile.h | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c index 3a523c936..cdbcae4fb 100644 --- a/src/xine-engine/configfile.c +++ b/src/xine-engine/configfile.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: configfile.c,v 1.83 2007/02/19 23:53:40 dgp85 Exp $ + * $Id: configfile.c,v 1.84 2007/02/20 00:01:19 dgp85 Exp $ * * config object (was: file) management - implementation * @@ -689,9 +689,9 @@ static int config_register_range (config_values_t *this, 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 @@ static int config_register_enum (config_values_t *this, void *cb_data) { cfg_entry_t *entry; - char **value_src, **value_dest; + const char **value_src; + char **value_dest; int value_count; diff --git a/src/xine-engine/configfile.h b/src/xine-engine/configfile.h index 9dd368d5a..3fb1124b4 100644 --- a/src/xine-engine/configfile.h +++ b/src/xine-engine/configfile.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: configfile.h,v 1.40 2007/02/19 23:53:40 dgp85 Exp $ + * $Id: configfile.h,v 1.41 2007/02/20 00:01:19 dgp85 Exp $ * * config file management * @@ -163,7 +163,7 @@ struct config_values_s { 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 -- cgit v1.2.3