Skip to content

Commit

Permalink
kernel: use C99 init for streams' StructInitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Apr 22, 2018
1 parent b7d4e1c commit 6ba518d
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -2281,18 +2281,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 )
Expand Down

0 comments on commit 6ba518d

Please sign in to comment.