summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_sample.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-05-29 00:51:19 +0000
committerjulian <julian@FreeBSD.org>2004-05-29 00:51:19 +0000
commitc85e63d425834e8115ce20fabc98cfe9af17974c (patch)
tree90dfb9283e4889f34526e006d0e40a59d5312611 /sys/netgraph/ng_sample.c
parent2873042997b2bd3b9ebb64d3ea805924eaf82ede (diff)
downloadFreeBSD-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/ng_sample.c')
-rw-r--r--sys/netgraph/ng_sample.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c
index 71b75af..20a3056 100644
--- a/sys/netgraph/ng_sample.c
+++ b/sys/netgraph/ng_sample.c
@@ -104,18 +104,17 @@ static const struct ng_cmdlist ng_xxx_cmdlist[] = {
/* Netgraph node type descriptor */
static struct ng_type typestruct = {
- NG_ABI_VERSION,
- NG_XXX_NODE_TYPE,
- NULL,
- ng_xxx_constructor,
- ng_xxx_rcvmsg,
- ng_xxx_shutdown,
- ng_xxx_newhook,
- NULL,
- ng_xxx_connect,
- ng_xxx_rcvdata,
- ng_xxx_disconnect,
- ng_xxx_cmdlist
+ .version = NG_ABI_VERSION,
+ .name = NG_XXX_NODE_TYPE,
+ .constructor = ng_xxx_constructor,
+ .rcvmsg = ng_xxx_rcvmsg,
+ .shutdown = ng_xxx_shutdown,
+ .newhook = ng_xxx_newhook,
+/* .findhook = ng_xxx_findhook, */
+ .connect = ng_xxx_connect,
+ .rcvdata = ng_xxx_rcvdata,
+ .disconnect = ng_xxx_disconnect,
+ .cmdlist = ng_xxx_cmdlist,
};
NETGRAPH_INIT(xxx, &typestruct);
OpenPOWER on IntegriCloud