From 0de2a85ae1efd9cece7686321ea185ae4912baa1 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 24 Mar 2013 14:58:40 +0100 Subject: Change audio_set_cuesheet parameter from int to bool (fixes cppcheck warning) Change-Id: Icb31c8bd8605aca27765a94b609c41f1f706426f --- apps/playback.c | 2 +- apps/playback.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/playback.c b/apps/playback.c index 9671f30..15a3fe9 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -3821,7 +3821,7 @@ long audio_filebufused(void) /* Enable or disable cuesheet support and allocate/don't allocate the extra associated resources */ -void audio_set_cuesheet(int enable) +void audio_set_cuesheet(bool enable) { if (play_status == PLAY_STOPPED || !enable != !get_current_cuesheet()) { diff --git a/apps/playback.h b/apps/playback.h index 0571f5f..5135c98 100644 --- a/apps/playback.h +++ b/apps/playback.h @@ -75,7 +75,7 @@ long audio_filebufused(void); void audio_pre_ff_rewind(void); void audio_skip(int direction); -void audio_set_cuesheet(int enable); +void audio_set_cuesheet(bool enable); #ifdef HAVE_CROSSFADE void audio_set_crossfade(int enable); #endif -- cgit v1.1