From b7f32128dcd3a46086365ad95f16f666d2eaa0b6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 31 Jan 2017 08:18:34 +0100 Subject: [PATCH] audio: Use C99 initializers in read_frames() Change-Id: I69d9ac00dbd7126682c66087804c2b33cf6c86bc --- audio/audio_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 6e6a71a2..423ce062 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -1865,8 +1865,8 @@ static ssize_t read_frames(struct stream_in *in, void *buffer, ssize_t frames) &frames_rd); } else { struct resampler_buffer buf = { - { raw : NULL, }, - frame_count : frames_rd, + .raw = NULL, + .frame_count = frames_rd, }; get_next_buffer(&in->buf_provider, &buf); if (buf.raw != NULL) {