Skip to contentSkip to conversation

C99 initializers for alsa-lib/aserver/aserver.c

PATCH New Art Haas 1 participant 1 message Jul 26, 2003

lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 C99 initializers for alsa-lib/aserver/aserver.c

Hi.

The cleanup of the obsolete GCC initializers in alsa-lib looks good. Here's a small patch for aserver/aserver.c that got missed.

Art Haas

Index: aserver/aserver.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/aserver/aserver.c,v retrieving revision 1.56

aserver.c +6 -6
diff -u -u -r1.56 aserver.c
@@ -518,9 +518,9 @@
 }
 
 transport_ops_t pcm_shm_ops = {
-	open: pcm_shm_open,
-	cmd: pcm_shm_cmd,
-	close: pcm_shm_close,
+	.open	= pcm_shm_open,
+	.cmd	= pcm_shm_cmd,
+	.close	= pcm_shm_close,
 };
 
 static int ctl_handler(waiter_t *waiter, unsigned short events)
@@ -712,9 +712,9 @@
 }
 
 transport_ops_t ctl_shm_ops = {
-	open: ctl_shm_open,
-	cmd: ctl_shm_cmd,
-	close: ctl_shm_close,
+	.open	= ctl_shm_open,
+	.cmd	= ctl_shm_cmd,
+	.close	= ctl_shm_close,
 };
 
 static int snd_client_open(client_t *client)
Signature · 11 lines
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01