From 96375e8ad2b394534369dd0f3b64a17dbc07b44b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 8 Jan 2014 15:03:34 +0200 Subject: [PATCH] android/audio-msg: Simplify audio_rsp_open_stream Reuse audio_preset in audio_rsp_open_stream since the data type is the same. --- android/audio-msg.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/audio-msg.h b/android/audio-msg.h index 1e0d5cf67..8f0327407 100644 --- a/android/audio-msg.h +++ b/android/audio-msg.h @@ -63,8 +63,7 @@ struct audio_cmd_open_stream { } __attribute__((packed)); struct audio_rsp_open_stream { - uint8_t len; - uint8_t data[0]; + struct audio_preset preset[0]; } __attribute__((packed)); #define AUDIO_OP_CLOSE_STREAM 0x04 -- 2.47.3