Use C99-style initializers. No functional change.

Reviewed by:	md5(1)
This commit is contained in:
das 2009-03-01 19:25:40 +00:00
parent 338049e757
commit 55bb705621

View File

@ -53,10 +53,15 @@ int __sdidinit;
#define NDYNAMIC 10 /* add ten more whenever necessary */ #define NDYNAMIC 10 /* add ten more whenever necessary */
#define std(flags, file) \ #define std(flags, file) { \
{0,0,0,flags,file,{0},0,__sF+file,__sclose,__sread,__sseek,__swrite} ._flags = (flags), \
/* p r w flags file _bf z cookie close read seek write */ ._file = (file), \
._cookie = __sF + (file), \
._close = __sclose, \
._read = __sread, \
._seek = __sseek, \
._write = __swrite, \
}
/* the usual - (stdin + stdout + stderr) */ /* the usual - (stdin + stdout + stderr) */
static FILE usual[FOPEN_MAX - 3]; static FILE usual[FOPEN_MAX - 3];
static struct glue uglue = { NULL, FOPEN_MAX - 3, usual }; static struct glue uglue = { NULL, FOPEN_MAX - 3, usual };