From de7cda1d6e8df9edc436196d0a2db25757abd236 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Sep 2008 15:55:17 +0200 Subject: use C99 struct initializers The old struct initializers are error prone and don't allow moving elements around. Since we are going to overhaul some of the APIs soon, it's easier to have all implementations use C99 initializers. --- src/audioOutputs/audioOutput_null.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/audioOutputs/audioOutput_null.c') diff --git a/src/audioOutputs/audioOutput_null.c b/src/audioOutputs/audioOutput_null.c index 564f8b870..ff3a9833c 100644 --- a/src/audioOutputs/audioOutput_null.c +++ b/src/audioOutputs/audioOutput_null.c @@ -76,13 +76,10 @@ static void null_dropBufferedAudio(void *data) } const struct audio_output_plugin nullPlugin = { - "null", - NULL, - null_initDriver, - NULL, - null_openDevice, - null_playAudio, - null_dropBufferedAudio, - null_closeDevice, - NULL, + .name = "null", + .init = null_initDriver, + .open = null_openDevice, + .play = null_playAudio, + .cancel = null_dropBufferedAudio, + .close = null_closeDevice, }; -- cgit v1.2.3