timidity/readmidi.c: tidy-up the dumpstring thing for text events.
authorOzkan Sezer
Wed, 18 Dec 2019 18:55:50 +0300
changeset 1097b8a083ebef5f
parent 1096 5ad7d1e1ddaa
child 1098 3be892f72aa7
timidity/readmidi.c: tidy-up the dumpstring thing for text events.

avoids a warning too, as a side effect.
src/codecs/timidity/readmidi.c
     1.1 --- a/src/codecs/timidity/readmidi.c	Wed Dec 18 17:55:50 2019 +0300
     1.2 +++ b/src/codecs/timidity/readmidi.c	Wed Dec 18 18:55:50 2019 +0300
     1.3 @@ -76,10 +76,6 @@
     1.4    free(s);
     1.5    return 0;
     1.6  }
     1.7 -#else
     1.8 -static SDL_INLINE int dumpstring(SDL_RWops *rw, Sint32 len, Uint8 type) {
     1.9 -  return SDL_RWseek(rw, len, RW_SEEK_CUR);
    1.10 -}
    1.11  #endif
    1.12  
    1.13  #define MIDIEVENT(at,t,ch,pa,pb) \
    1.14 @@ -120,7 +116,8 @@
    1.15  	  len=getvl(song->rw);
    1.16  	  if (type>0 && type<16)
    1.17  	    {
    1.18 -	      dumpstring(song->rw, len, type);
    1.19 +	    /*dumpstring(song->rw, len, type);*/ /* see above */
    1.20 +	      SDL_RWseek(rw, len, RW_SEEK_CUR);
    1.21  	    }
    1.22  	  else
    1.23  	    switch(type)