From a38fa2d32c304e9c6d6200340e51d56c77f34a83 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 22 Apr 2018 23:00:58 +0200 Subject: [PATCH] kernel: use C99 init for streams' StructInitInfo --- src/streams.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/streams.c b/src/streams.c index d70e359162..dc1955ea1f 100644 --- a/src/streams.c +++ b/src/streams.c @@ -2247,18 +2247,13 @@ static Int InitLibrary ( *F InitInfoStreams() . . . . . . . . . . . . . . . . table of init functions */ static StructInitInfo module = { - MODULE_BUILTIN, /* type */ - "streams" , /* name */ - 0, /* revision entry of c file */ - 0, /* revision entry of h file */ - 0, /* version */ - 0, /* crc */ - InitKernel, /* initKernel */ - InitLibrary, /* initLibrary */ - 0, /* checkInit */ - 0, /* preSave */ - 0, /* postSave */ - PostRestore /* postRestore */ + // init struct using C99 designated initializers; for a full list of + // fields, please refer to the definition of StructInitInfo + .type = MODULE_BUILTIN, + .name = "streams", + .initKernel = InitKernel, + .initLibrary = InitLibrary, + .postRestore = PostRestore, }; StructInitInfo * InitInfoStreams ( void )