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 io/ftw.c


Hi.

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

I also have patches for the following files:

iconvdata/iso-ir-165.c
iconvdata/jis0208.c
iconvdata/jis0212.c

The three patches together are 200K in size though. Each patch just switches
"start:" to ".start =", "end:" to ".end =", and "idx:" to ".idx =".
As sending compressed patches has been frowned upon, and I don't think
sending 200K e-mail to a mailing list is a nice thing to do, what is the
best way of getting the patches in?

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

	* io/ftw.c: Convert GCC extension initializer syntax to C99.

Index: io/ftw.c
===================================================================
RCS file: /cvs/glibc/libc/io/ftw.c,v
retrieving revision 1.32
diff -u -r1.32 ftw.c
--- io/ftw.c	17 Dec 2001 23:07:40 -0000	1.32
+++ io/ftw.c	16 Dec 2002 22:54:34 -0000
@@ -138,7 +138,7 @@
 static inline int
 find_object (struct ftw_data *data, struct STAT *st)
 {
-  struct known_object obj = { dev: st->st_dev, ino: st->st_ino };
+  struct known_object obj = { .dev = st->st_dev, .ino = st->st_ino };
   return __tfind (&obj, &data->known_objects, object_compare) != NULL;
 }
 
-- 
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]