svn commit: r189249 - head/lib/libc/stdio

David Schultz das at FreeBSD.org
Sun Mar 1 11:25:41 PST 2009


Author: das
Date: Sun Mar  1 19:25:40 2009
New Revision: 189249
URL: http://svn.freebsd.org/changeset/base/189249

Log:
  Use C99-style initializers. No functional change.
  
  Reviewed by:	md5(1)

Modified:
  head/lib/libc/stdio/findfp.c

Modified: head/lib/libc/stdio/findfp.c
==============================================================================
--- head/lib/libc/stdio/findfp.c	Sun Mar  1 18:57:59 2009	(r189248)
+++ head/lib/libc/stdio/findfp.c	Sun Mar  1 19:25:40 2009	(r189249)
@@ -53,10 +53,15 @@ int	__sdidinit;
 
 #define	NDYNAMIC 10		/* add ten more whenever necessary */
 
-#define	std(flags, file) \
-  	{0,0,0,flags,file,{0},0,__sF+file,__sclose,__sread,__sseek,__swrite}
-  /*	 p r w flags file _bf z  cookie      close    read    seek    write */
-
+#define	std(flags, file) {		\
+	._flags = (flags),		\
+	._file = (file),		\
+	._cookie = __sF + (file),	\
+	._close = __sclose,		\
+	._read = __sread,		\
+	._seek = __sseek,		\
+	._write = __swrite,		\
+}
 				/* the usual - (stdin + stdout + stderr) */
 static FILE usual[FOPEN_MAX - 3];
 static struct glue uglue = { NULL, FOPEN_MAX - 3, usual };


More information about the svn-src-head mailing list