aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/mp3_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-08 16:49:19 +0100
committerMax Kellermann <max@duempel.org>2008-12-08 16:49:19 +0100
commit87f6f57bf69efacf20e77b8b3ab526dda76b13d1 (patch)
treeb4fd94998772401185f4002f796f488fc29fb70a /src/decoder/mp3_plugin.c
parenta25b8acd827ffd663e24e27961796ccf80aa5571 (diff)
downloadmpd-87f6f57bf69efacf20e77b8b3ab526dda76b13d1.tar.gz
mpd-87f6f57bf69efacf20e77b8b3ab526dda76b13d1.tar.xz
mpd-87f6f57bf69efacf20e77b8b3ab526dda76b13d1.zip
mp3: declare variables as "enum mp3_action"
Variables which hold one of the DECODE_* values should be declared as "enum mp3_action" instead of "int".
Diffstat (limited to 'src/decoder/mp3_plugin.c')
-rw-r--r--src/decoder/mp3_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c
index a3643b842..cb5d2a623 100644
--- a/src/decoder/mp3_plugin.c
+++ b/src/decoder/mp3_plugin.c
@@ -705,7 +705,7 @@ mp3_decode_first_frame(struct mp3_data *data, struct tag **tag,
struct lame lame;
struct mad_bitptr ptr;
int bitlen;
- int ret;
+ enum mp3_action ret;
/* stfu gcc */
memset(&xing, 0, sizeof(struct xing));
@@ -976,7 +976,7 @@ static bool
mp3_read(struct mp3_data *data, struct replay_gain_info **replay_gain_info_r)
{
struct decoder *decoder = data->decoder;
- int ret;
+ enum mp3_action ret;
enum decoder_command cmd;
mp3_update_timer_next_frame(data);