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".
This commit is contained in:
Max Kellermann 2008-12-08 16:49:19 +01:00
parent a25b8acd82
commit 87f6f57bf6

View File

@ -705,7 +705,7 @@ mp3_decode_first_frame(struct mp3_data *data, struct tag **tag,
struct lame lame; struct lame lame;
struct mad_bitptr ptr; struct mad_bitptr ptr;
int bitlen; int bitlen;
int ret; enum mp3_action ret;
/* stfu gcc */ /* stfu gcc */
memset(&xing, 0, sizeof(struct xing)); 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) mp3_read(struct mp3_data *data, struct replay_gain_info **replay_gain_info_r)
{ {
struct decoder *decoder = data->decoder; struct decoder *decoder = data->decoder;
int ret; enum mp3_action ret;
enum decoder_command cmd; enum decoder_command cmd;
mp3_update_timer_next_frame(data); mp3_update_timer_next_frame(data);