1
0
Fork 0
forked from len0rd/rockbox

Fix playback.c audio_track_count() warning

changes return to unsigned int to match underlying aliased function

Change-Id: I7015c7ad929344441249aa7c4f2af361142fcaf4
This commit is contained in:
William Wilgus 2018-10-18 09:57:20 -04:00
parent 7c2295ea46
commit 7a132a257a
3 changed files with 3 additions and 3 deletions

View file

@ -449,7 +449,7 @@ static bool dbg_buffering_thread(void)
screens[i].putsf(0, line++, "data_rem: %ld", (long)d.data_rem);
screens[i].putsf(0, line++, "track count: %2d", audio_track_count());
screens[i].putsf(0, line++, "track count: %2u", audio_track_count());
screens[i].putsf(0, line++, "handle count: %d", (int)d.num_handles);

View file

@ -3745,7 +3745,7 @@ size_t audio_get_filebuflen(void)
}
/* How many tracks exist on the buffer - full or partial */
int audio_track_count(void)
unsigned int audio_track_count(void)
__attribute__((alias("track_list_count")));
/* Return total ringbuffer space occupied - ridx to widx */

View file

@ -76,7 +76,7 @@ struct bufopen_bitmap_data {
#endif /* HAVE_ALBUMART */
/* Functions */
int audio_track_count(void);
unsigned int audio_track_count(void);
long audio_filebufused(void);
void audio_pre_ff_rewind(void);
void audio_skip(int direction);