Skip to content

Commit

Permalink
timidity/readmidi.c: tidy-up the dumpstring thing for text events.
Browse files Browse the repository at this point in the history
avoids a warning too, as a side effect.
  • Loading branch information
sezero committed Dec 18, 2019
1 parent d84d66b commit 39b5498
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/codecs/timidity/readmidi.c
Expand Up @@ -76,10 +76,6 @@ static int dumpstring(SDL_RWops *rw, Sint32 len, Uint8 type)
free(s);
return 0;
}
#else
static SDL_INLINE int dumpstring(SDL_RWops *rw, Sint32 len, Uint8 type) {
return SDL_RWseek(rw, len, RW_SEEK_CUR);
}
#endif

#define MIDIEVENT(at,t,ch,pa,pb) \
Expand Down Expand Up @@ -120,7 +116,8 @@ static MidiEventList *read_midi_event(MidiSong *song)
len=getvl(song->rw);
if (type>0 && type<16)
{
dumpstring(song->rw, len, type);
/*dumpstring(song->rw, len, type);*/ /* see above */
SDL_RWseek(rw, len, RW_SEEK_CUR);
}
else
switch(type)
Expand Down

0 comments on commit 39b5498

Please sign in to comment.