diff options
author | Roman Kurakin <rik@FreeBSD.org> | 2004-05-29 13:17:28 +0000 |
---|---|---|
committer | Roman Kurakin <rik@FreeBSD.org> | 2004-05-29 13:17:28 +0000 |
commit | 24f6353dc4ed947f8b6ac14bd4dd757eba31c859 (patch) | |
tree | d1b8696ccf572d4655430c095a4c86ff669ae68b /sys/dev/cx | |
parent | 991fc65a92691d0d81c3dfda275dc949b6c8dc5b (diff) | |
download | src-24f6353dc4ed947f8b6ac14bd4dd757eba31c859.tar.gz src-24f6353dc4ed947f8b6ac14bd4dd757eba31c859.zip |
Switch to using C99 sparse initialisers for the type methods array.
Requested by: harti
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=129837
Diffstat (limited to 'sys/dev/cx')
-rw-r--r-- | sys/dev/cx/if_cx.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index 6e6f3ff1b87e..8d63fa854ef2 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -3179,28 +3179,15 @@ static int cx_modevent (module_t mod, int type, void *unused) #ifdef NETGRAPH static struct ng_type typestruct = { -#if __FreeBSD_version >= 500000 - NG_ABI_VERSION, -#else - NG_VERSION, -#endif - NG_CX_NODE_TYPE, -#if __FreeBSD_version < 500000 && defined KLD_MODULE - cx_modevent, -#else - NULL, -#endif - ng_cx_constructor, - ng_cx_rcvmsg, - ng_cx_rmnode, - ng_cx_newhook, - NULL, - ng_cx_connect, - ng_cx_rcvdata, -#if __FreeBSD_version < 500000 - NULL, -#endif - ng_cx_disconnect + .version = NG_ABI_VERSION, + .name = NG_CX_NODE_TYPE, + .constructor = ng_cx_constructor, + .rcvmsg = ng_cx_rcvmsg, + .shutdown = ng_cx_rmnode, + .newhook = ng_cx_newhook, + .connect = ng_cx_connect, + .rcvdata = ng_cx_rcvdata, + .disconnect = ng_cx_disconnect }; #if __FreeBSD_version < 400000 |