diff options
author | Max Kellermann <max@duempel.org> | 2008-09-17 12:29:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-17 12:29:07 +0200 |
commit | 75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d (patch) | |
tree | 5fb6924e98b6882e8a63771578e56c7c156101a4 /src/screen_play.c | |
parent | 9e7dda69f7951f678a1b31d693dba90199d17248 (diff) | |
download | mpd-75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d.tar.gz mpd-75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d.tar.xz mpd-75348aad7cbddb9ef736a0ecca9e3ddfb8b75f8d.zip |
make several functions return void
Diffstat (limited to '')
-rw-r--r-- | src/screen_play.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index d257ec1db..1f844f943 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -92,7 +92,7 @@ list_callback(unsigned idx, int *highlight, void *data) return songname; } -static int +static void center_playing_item(mpdclient_t *c) { unsigned length = c->playlist.list->len; @@ -101,13 +101,13 @@ center_playing_item(mpdclient_t *c) if (!lw || !c->song || length<lw->rows || IS_STOPPED(c->status->state)) - return 0; + return; /* try to center the song that are playing */ idx = playlist_get_index(c, c->song); D("Autocenter song id:%d pos:%d index:%d\n", c->song->id,c->song->pos,idx); if (idx < 0) - return 0; + return; list_window_center(lw, length, idx); @@ -115,7 +115,7 @@ center_playing_item(mpdclient_t *c) lw->selected = lw->start+offset; list_window_check_selected(lw, length); - return 0; + return; } static void |