summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/findfp.c
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-03-01 19:25:40 +0000
committerdas <das@FreeBSD.org>2009-03-01 19:25:40 +0000
commit55bb705621151a27205467d724b9b4d77eff22c0 (patch)
treebd679aa7435a2e00b2bc34e9807a95741a75a068 /lib/libc/stdio/findfp.c
parent338049e7577f92e14d588f1f7452cf322d722e34 (diff)
downloadFreeBSD-src-55bb705621151a27205467d724b9b4d77eff22c0.zip
FreeBSD-src-55bb705621151a27205467d724b9b4d77eff22c0.tar.gz
Use C99-style initializers. No functional change.
Reviewed by: md5(1)
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r--lib/libc/stdio/findfp.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c
index a8ce7af..586e15c 100644
--- a/lib/libc/stdio/findfp.c
+++ b/lib/libc/stdio/findfp.c
@@ -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 };
OpenPOWER on IntegriCloud