freebsd-ports/games/adonthell/files/patch-src_music.c
Martin Wilke de06319d75 - Fix build with gcc 4.2
PR:		118185
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (erwin)
2007-11-22 08:37:10 +00:00

20 lines
683 B
C

--- src/music.c.orig 2007-11-21 18:01:48.000000000 +0100
+++ src/music.c 2007-11-21 18:02:31.000000000 +0100
@@ -393,7 +393,7 @@
#endif
#ifdef MID_MUSIC
/* MIDI files have the magic four bytes "MThd" */
- if ( strcmp(magic, "MThd") == 0 ) {
+ if ( strcmp((char *)magic, "MThd") == 0 ) {
music->type = MUS_MID;
if ( timidity_ok ) {
music->data.midi = Timidity_LoadSong((char *)file);
@@ -410,7 +410,7 @@
#endif
#ifdef OGG_MUSIC
/* Ogg Vorbis files have the magic four bytes "OggS" */
- if ( strcmp(magic, "OggS") == 0 ) {
+ if ( strcmp((char *)magic, "OggS") == 0 ) {
music->type = MUS_OGG;
music->data.ogg = OGG_new(file);
if ( music->data.ogg == NULL ) {