diff options
author | julian <julian@FreeBSD.org> | 2004-05-29 00:51:19 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-05-29 00:51:19 +0000 |
commit | c85e63d425834e8115ce20fabc98cfe9af17974c (patch) | |
tree | 90dfb9283e4889f34526e006d0e40a59d5312611 /sys/netgraph/bluetooth/hci/ng_hci_main.c | |
parent | 2873042997b2bd3b9ebb64d3ea805924eaf82ede (diff) | |
download | FreeBSD-src-c85e63d425834e8115ce20fabc98cfe9af17974c.zip FreeBSD-src-c85e63d425834e8115ce20fabc98cfe9af17974c.tar.gz |
Switch to using C99 sparse initialisers for the type methods array.
Should make no binary difference.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Reviewed by: Harti Brandt <harti@freebsd.org>
MFC after: 1 week
Diffstat (limited to 'sys/netgraph/bluetooth/hci/ng_hci_main.c')
-rw-r--r-- | sys/netgraph/bluetooth/hci/ng_hci_main.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/sys/netgraph/bluetooth/hci/ng_hci_main.c b/sys/netgraph/bluetooth/hci/ng_hci_main.c index 67eaac8..ad44254 100644 --- a/sys/netgraph/bluetooth/hci/ng_hci_main.c +++ b/sys/netgraph/bluetooth/hci/ng_hci_main.c @@ -76,18 +76,16 @@ static ng_rcvdata_t ng_hci_raw_rcvdata; /* Netgraph node type descriptor */ static struct ng_type typestruct = { - NG_ABI_VERSION, - NG_HCI_NODE_TYPE, /* typename */ - NULL, /* modevent */ - ng_hci_constructor, /* constructor */ - ng_hci_default_rcvmsg, /* control message */ - ng_hci_shutdown, /* destructor */ - ng_hci_newhook, /* new hook */ - NULL, /* findhook */ - ng_hci_connect, /* connect hook */ - ng_hci_drv_rcvdata, /* data */ - ng_hci_disconnect, /* disconnect hook */ - ng_hci_cmdlist /* node command list */ + .version = NG_ABI_VERSION, + .name = NG_HCI_NODE_TYPE, + .constructor = ng_hci_constructor, + .rcvmsg = ng_hci_default_rcvmsg, + .shutdown = ng_hci_shutdown, + .newhook = ng_hci_newhook, + .connect = ng_hci_connect, + .rcvdata = ng_hci_drv_rcvdata, + .disconnect = ng_hci_disconnect, + .cmdlist = ng_hci_cmdlist, }; NETGRAPH_INIT(hci, &typestruct); MODULE_VERSION(ng_hci, NG_BLUETOOTH_VERSION); |