From c85e63d425834e8115ce20fabc98cfe9af17974c Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 29 May 2004 00:51:19 +0000 Subject: Switch to using C99 sparse initialisers for the type methods array. Should make no binary difference. Submitted by: Gleb Smirnoff Reviewed by: Harti Brandt MFC after: 1 week --- sys/netgraph/ng_tty.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'sys/netgraph/ng_tty.c') diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c index 9a0175e..186cad6 100644 --- a/sys/netgraph/ng_tty.c +++ b/sys/netgraph/ng_tty.c @@ -154,18 +154,16 @@ static struct linesw ngt_disc = { /* Netgraph node type descriptor */ static struct ng_type typestruct = { - NG_ABI_VERSION, - NG_TTY_NODE_TYPE, - ngt_mod_event, - ngt_constructor, - ngt_rcvmsg, - ngt_shutdown, - ngt_newhook, - NULL, - ngt_connect, - ngt_rcvdata, - ngt_disconnect, - NULL + .version = NG_ABI_VERSION, + .name = NG_TTY_NODE_TYPE, + .mod_event = ngt_mod_event, + .constructor = ngt_constructor, + .rcvmsg = ngt_rcvmsg, + .shutdown = ngt_shutdown, + .newhook = ngt_newhook, + .connect = ngt_connect, + .rcvdata = ngt_rcvdata, + .disconnect = ngt_disconnect, }; NETGRAPH_INIT(tty, &typestruct); -- cgit v1.1