This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] C99 initializer for sysdeps/gnu/siglist.c


Hi.

Here's a trivial patch for converting the file to use C99 initializers.

2002-12-20  Art Haas  <ahaas@airmail.net>

	* sysdeps/gnu/siglist.c: Convert GCC extension initializer
	syntax to C99.

Index: sysdeps/gnu/siglist.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/gnu/siglist.c,v
retrieving revision 1.8
diff -u -r1.8 siglist.c
--- sysdeps/gnu/siglist.c	1 Nov 2002 20:48:33 -0000	1.8
+++ sysdeps/gnu/siglist.c	20 Dec 2002 15:32:16 -0000
@@ -25,7 +25,7 @@
 
 const char *const __new_sys_siglist[NSIG] =
 {
-#define init_sig(sig, abbrev, desc)   [sig] desc,
+#define init_sig(sig, abbrev, desc)   [sig] = desc,
 #include <siglist.h>
 #undef init_sig
 };
@@ -38,7 +38,7 @@
 
 const char *const __new_sys_sigabbrev[NSIG] =
 {
-#define init_sig(sig, abbrev, desc)   [sig] abbrev,
+#define init_sig(sig, abbrev, desc)   [sig] = abbrev,
 #include <siglist.h>
 #undef init_sig
 };
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]