diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-11 02:31:14 +0200 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-08-11 20:51:23 +0400 |
commit | bee37f32d47a6c04ff57d18e01cf296607e22b30 (patch) | |
tree | 546451578b316fd720580b20bd922105ab97f04c /audio/esdaudio.c | |
parent | Fix virtio-blk (diff) | |
download | qemu-kvm-bee37f32d47a6c04ff57d18e01cf296607e22b30.tar.gz qemu-kvm-bee37f32d47a6c04ff57d18e01cf296607e22b30.tar.bz2 qemu-kvm-bee37f32d47a6c04ff57d18e01cf296607e22b30.zip |
Use proper struct initializers and remove INIT_FIELD() macro
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'audio/esdaudio.c')
-rw-r--r-- | audio/esdaudio.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/audio/esdaudio.c b/audio/esdaudio.c index 0102c5ade..ff6725e30 100644 --- a/audio/esdaudio.c +++ b/audio/esdaudio.c @@ -581,16 +581,15 @@ static struct audio_pcm_ops qesd_pcm_ops = { }; struct audio_driver esd_audio_driver = { - INIT_FIELD (name = ) "esd", - INIT_FIELD (descr = ) - "http://en.wikipedia.org/wiki/Esound", - INIT_FIELD (options = ) qesd_options, - INIT_FIELD (init = ) qesd_audio_init, - INIT_FIELD (fini = ) qesd_audio_fini, - INIT_FIELD (pcm_ops = ) &qesd_pcm_ops, - INIT_FIELD (can_be_default = ) 0, - INIT_FIELD (max_voices_out = ) INT_MAX, - INIT_FIELD (max_voices_in = ) INT_MAX, - INIT_FIELD (voice_size_out = ) sizeof (ESDVoiceOut), - INIT_FIELD (voice_size_in = ) sizeof (ESDVoiceIn) + .name = "esd", + .descr = "http://en.wikipedia.org/wiki/Esound", + .options = qesd_options, + .init = qesd_audio_init, + .fini = qesd_audio_fini, + .pcm_ops = &qesd_pcm_ops, + .can_be_default = 0, + .max_voices_out = INT_MAX, + .max_voices_in = INT_MAX, + .voice_size_out = sizeof (ESDVoiceOut), + .voice_size_in = sizeof (ESDVoiceIn) }; |