fix -Wconst warnings
[ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
committed by
Eric Wong
parent
22efbd5eca
commit
6fbdc721d9
@@ -473,11 +473,11 @@ static unsigned int oggflac_try_decode(InputStream * inStream)
|
||||
return (ogg_stream_type_detect(inStream) == FLAC) ? 1 : 0;
|
||||
}
|
||||
|
||||
static char *oggflac_suffixes[] = { "ogg", "oga", NULL };
|
||||
static char *oggflac_mime_types[] = { "audio/x-flac+ogg",
|
||||
"application/ogg",
|
||||
"application/x-ogg",
|
||||
NULL };
|
||||
static const char *oggflac_suffixes[] = { "ogg", "oga", NULL };
|
||||
static const char *oggflac_mime_types[] = { "audio/x-flac+ogg",
|
||||
"application/ogg",
|
||||
"application/x-ogg",
|
||||
NULL };
|
||||
|
||||
static int flac_plugin_init(void)
|
||||
{
|
||||
@@ -501,10 +501,10 @@ static int flac_plugin_init(void)
|
||||
|
||||
#endif /* FLAC_API_VERSION_CURRENT >= 7 */
|
||||
|
||||
static char *flacSuffixes[] = { "flac", NULL };
|
||||
static char *flac_mime_types[] = { "audio/x-flac",
|
||||
"application/x-flac",
|
||||
NULL };
|
||||
static const char *flacSuffixes[] = { "flac", NULL };
|
||||
static const char *flac_mime_types[] = { "audio/x-flac",
|
||||
"application/x-flac",
|
||||
NULL };
|
||||
|
||||
InputPlugin flacPlugin = {
|
||||
"flac",
|
||||
|
||||
Reference in New Issue
Block a user