summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-02-20 00:01:19 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-02-20 00:01:19 +0000
commit2802ec520af5d4ef87d2030789f7df7a2a0da0c6 (patch)
tree07089de6cc5e980426a2905806f1596183b7b87d
parent828ab12ab770b1258bc89086f3337b497f9268fa (diff)
downloadxine-lib-2802ec520af5d4ef87d2030789f7df7a2a0da0c6.tar.gz
xine-lib-2802ec520af5d4ef87d2030789f7df7a2a0da0c6.tar.bz2
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
-rw-r--r--src/xine-engine/configfile.c9
-rw-r--r--src/xine-engine/configfile.h4
2 files changed, 7 insertions, 6 deletions
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