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 --- .../bluetooth/socket/ng_btsocket_hci_raw.c | 23 ++++++++++------------ 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c') diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c index ff4930d..636edb2 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c @@ -91,19 +91,16 @@ struct ng_btsocket_hci_raw_sec_filter { }; /* Netgraph type descriptor */ -static struct ng_type typestruct = { - NG_ABI_VERSION, - NG_BTSOCKET_HCI_RAW_NODE_TYPE, /* typename */ - NULL, /* modevent */ - ng_btsocket_hci_raw_node_constructor, /* constructor */ - ng_btsocket_hci_raw_node_rcvmsg, /* control message */ - ng_btsocket_hci_raw_node_shutdown, /* destructor */ - ng_btsocket_hci_raw_node_newhook, /* new hook */ - NULL, /* find hook */ - ng_btsocket_hci_raw_node_connect, /* connect hook */ - ng_btsocket_hci_raw_node_rcvdata, /* data */ - ng_btsocket_hci_raw_node_disconnect, /* disconnect hook */ - NULL /* node command list */ +static struct ng_type typestruct = { + .version = NG_ABI_VERSION, + .name = NG_BTSOCKET_HCI_RAW_NODE_TYPE, + .constructor = ng_btsocket_hci_raw_node_constructor, + .rcvmsg = ng_btsocket_hci_raw_node_rcvmsg, + .shutdown = ng_btsocket_hci_raw_node_shutdown, + .newhook = ng_btsocket_hci_raw_node_newhook, + .connect = ng_btsocket_hci_raw_node_connect, + .rcvdata = ng_btsocket_hci_raw_node_rcvdata, + .disconnect = ng_btsocket_hci_raw_node_disconnect, }; /* Globals */ -- cgit v1.1