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_socket.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'sys/netgraph/ng_socket.c') diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c index fd3d267..4c3321f 100644 --- a/sys/netgraph/ng_socket.c +++ b/sys/netgraph/ng_socket.c @@ -130,18 +130,16 @@ static int ship_msg(struct ngpcb *pcbp, struct ng_mesg *msg, /* Netgraph type descriptor */ static struct ng_type typestruct = { - NG_ABI_VERSION, - NG_SOCKET_NODE_TYPE, - ngs_mod_event, - ngs_constructor, - ngs_rcvmsg, - ngs_shutdown, - ngs_newhook, - NULL, - ngs_connect, - ngs_rcvdata, - ngs_disconnect, - NULL + .version = NG_ABI_VERSION, + .name = NG_SOCKET_NODE_TYPE, + .mod_event = ngs_mod_event, + .constructor = ngs_constructor, + .rcvmsg = ngs_rcvmsg, + .shutdown = ngs_shutdown, + .newhook = ngs_newhook, + .connect = ngs_connect, + .rcvdata = ngs_rcvdata, + .disconnect = ngs_disconnect, }; NETGRAPH_INIT(socket, &typestruct); -- cgit v1.1