diff options
author | Kalle Wallin <kaw@linux.se> | 2005-01-04 21:47:43 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2005-01-04 21:47:43 +0000 |
commit | 3120074082ffd1630a9dc3fbdf7052c20fa6448f (patch) | |
tree | ae09af0f129b900b844217ecc1fd9e380d54cb38 /src | |
parent | 54f40af4405a23c0d463569c7d319276f42cb49d (diff) | |
download | mpd-3120074082ffd1630a9dc3fbdf7052c20fa6448f.tar.gz mpd-3120074082ffd1630a9dc3fbdf7052c20fa6448f.tar.xz mpd-3120074082ffd1630a9dc3fbdf7052c20fa6448f.zip |
Removed C++ style declarations from enqueue_and_play()
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2874 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/screen_file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_file.c b/src/screen_file.c index aff58a526..1e13cc4c7 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -331,6 +331,7 @@ handle_delete(screen_t *screen, mpdclient_t *c) static int enqueue_and_play(screen_t *screen, mpdclient_t *c, filelist_entry_t *entry) { + int index; mpd_InfoEntity *entity = entry->entity; mpd_Song *song = entity->info.song; @@ -349,7 +350,7 @@ enqueue_and_play(screen_t *screen, mpdclient_t *c, filelist_entry_t *entry) return -1; } - int index = playlist_get_index_from_file(c, song->file); + index = playlist_get_index_from_file(c, song->file); mpdclient_cmd_play(c, index); return 0; } |