diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-14 17:52:39 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-14 17:52:39 +0200 |
commit | dc36f8d045cf4f723c44766f44c92e1810e37f4f (patch) | |
tree | d95005aa4d2ccbf6c61ec62b0a38c67d72b582a3 /src/xine-engine/xine.c | |
parent | 5f701693bfa7357ec08114c03963f6f5e9ef1836 (diff) | |
download | xine-lib-dc36f8d045cf4f723c44766f44c92e1810e37f4f.tar.gz xine-lib-dc36f8d045cf4f723c44766f44c92e1810e37f4f.tar.bz2 |
Mark string arrays as arrays of constant pointers, and do the same for memcpy structures.
When array of constant pointers are used for register enum configurations,
this creates more warnings because of pointer mismatches; I'd consider
casting them, but not yet.
In the memcpy_method array, mark the parts that are constant at build time
as const so to try reducing the overhead.
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 402aaec66..6661ea102 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -1539,8 +1539,8 @@ static void config_save_cb (void *this_gen, xine_cfg_entry_t *entry) { } void xine_init (xine_t *this) { - static const char *demux_strategies[] = {"default", "reverse", "content", - "extension", NULL}; + static const char *const demux_strategies[] = {"default", "reverse", "content", + "extension", NULL}; /* First of all, initialise libxdg-basedir as it's used by plugins. */ this->basedir_handle = xdgAllocHandle(); |