Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 18 Mar 2015 10:05:36 -0400
changeset 9389 2c4fa44a32a7
parent 9388 8d26d736af94
child 9390 afd88e715bd7
Patched to compile on C89 compilers.
src/audio/pulseaudio/SDL_pulseaudio.c
--- a/src/audio/pulseaudio/SDL_pulseaudio.c	Wed Mar 18 09:59:22 2015 -0400
+++ b/src/audio/pulseaudio/SDL_pulseaudio.c	Wed Mar 18 10:05:36 2015 -0400
@@ -546,10 +546,8 @@
     }
 
     if (!iscapture) {
-        sink_struct a;
-        a.last = 0;
-        a.addfn = addfn;
-        pa_operation* o = PULSEAUDIO_pa_context_get_sink_info_list(context,
+        sink_struct a = { 0, addfn };
+        pa_operation *o = PULSEAUDIO_pa_context_get_sink_info_list(context,
                 get_sink_info_callback, &a);
         while (!a.last) {
             if (PULSEAUDIO_pa_operation_get_state(o) == PA_OPERATION_CANCELLED) {