Prefer NULL over 0 for pointers

This commit is contained in:
Kevin Lo 2012-10-09 08:27:40 +00:00
parent 10d66948a8
commit a10cee30c9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241370
79 changed files with 88 additions and 89 deletions

View File

@ -163,7 +163,7 @@ load(module_t mod, int cmd, void *arg)
static moduledata_t mod_data = {
"dyn_sysctl",
load,
0
NULL
};
DECLARE_MODULE(dyn_sysctl, mod_data, SI_SUB_EXEC, SI_ORDER_ANY);

View File

@ -71,7 +71,7 @@ fw_consumer_modevent(module_t mod, int type, void *unused)
static moduledata_t fw_consumer_mod = {
"fw_consumer",
fw_consumer_modevent,
0
NULL
};
DECLARE_MODULE(fw_consumer, fw_consumer_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);
MODULE_VERSION(fw_consumer, 1);

View File

@ -99,7 +99,7 @@ static int foo_handler(module_t mod, int /*modeventtype_t*/ what,
static moduledata_t mod_data= {
"foo",
foo_handler,
0
NULL
};
MODULE_VERSION(foo, 1);

View File

@ -1198,7 +1198,7 @@ linux_elf_modevent(module_t mod, int type, void *data)
static moduledata_t linux_elf_mod = {
"linuxelf",
linux_elf_modevent,
0
NULL
};
DECLARE_MODULE_TIED(linuxelf, linux_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY);

View File

@ -5526,7 +5526,7 @@ zfs_modevent(module_t mod, int type, void *unused __unused)
static moduledata_t zfs_mod = {
"zfsctrl",
zfs_modevent,
0
NULL
};
DECLARE_MODULE(zfsctrl, zfs_mod, SI_SUB_VFS, SI_ORDER_ANY);
MODULE_DEPEND(zfsctrl, opensolaris, 1, 1, 1);

View File

@ -308,7 +308,7 @@ svr4_elf_modevent(module_t mod, int type, void *data)
static moduledata_t svr4_elf_mod = {
"svr4elf",
svr4_elf_modevent,
0
NULL
};
DECLARE_MODULE_TIED(svr4elf, svr4_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY);
MODULE_DEPEND(svr4elf, streams, 1, 1, 1);

View File

@ -275,7 +275,7 @@ ipf_modunload()
static moduledata_t ipfiltermod = {
"ipfilter",
ipfilter_modevent,
0
NULL
};

View File

@ -407,7 +407,7 @@ addr_load(module_t mod, int cmd, void *arg)
static moduledata_t mod_data = {
"rdma_addr",
addr_load,
0
NULL
};
MODULE_VERSION(rdma_addr, 1);

View File

@ -2990,7 +2990,7 @@ cma_load(module_t mod, int cmd, void *arg)
static moduledata_t mod_data = {
"rdma_cma",
cma_load,
0
NULL
};
MODULE_VERSION(rdma_cma, 1);

View File

@ -769,7 +769,7 @@ rdma_core_load(module_t mod, int cmd, void *arg)
static moduledata_t mod_data = {
"rdma_core",
rdma_core_load,
0
NULL
};
MODULE_VERSION(rdma_core, 1);

View File

@ -1078,7 +1078,7 @@ iw_cm_load(module_t mod, int cmd, void *arg)
static moduledata_t mod_data = {
"rdma_iwcm",
iw_cm_load,
0
NULL
};
MODULE_VERSION(rdma_iwcm, 1);

View File

@ -122,7 +122,7 @@ rc4_modevent(module_t mod, int type, void *unused)
static moduledata_t rc4_mod = {
"rc4",
rc4_modevent,
0
NULL
};
DECLARE_MODULE(rc4, rc4_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(rc4, 1);

View File

@ -182,7 +182,7 @@ bktr_retrieve_address(int unit, int type)
static moduledata_t bktr_mem_mod = {
"bktr_mem",
bktr_mem_modevent,
0
NULL
};
/*

View File

@ -43,7 +43,7 @@ cxgb_t3fw_modevent(module_t mod, int type, void *unused)
static moduledata_t cxgb_t3fw_mod = {
"cxgb_t3fw",
cxgb_t3fw_modevent,
0
NULL
};
DECLARE_MODULE(cxgb_t3fw, cxgb_t3fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(cxgb_t3fw, 1);
@ -76,7 +76,7 @@ cxgb_t3b_protocol_sram_modevent(module_t mod, int type, void *unused)
static moduledata_t cxgb_t3b_protocol_sram_mod = {
"cxgb_t3b_protocol_sram",
cxgb_t3b_protocol_sram_modevent,
0
NULL
};
DECLARE_MODULE(cxgb_t3b_protocol_sram, cxgb_t3b_protocol_sram_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(cxgb_t3b_protocol_sram, 1);
@ -109,7 +109,7 @@ cxgb_t3b_tp_eeprom_modevent(module_t mod, int type, void *unused)
static moduledata_t cxgb_t3b_tp_eeprom_mod = {
"cxgb_t3b_tp_eeprom",
cxgb_t3b_tp_eeprom_modevent,
0
NULL
};
DECLARE_MODULE(cxgb_t3b_tp_eeprom, cxgb_t3b_tp_eeprom_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(cxgb_t3b_tp_eeprom, 1);
@ -142,7 +142,7 @@ cxgb_t3c_protocol_sram_modevent(module_t mod, int type, void *unused)
static moduledata_t cxgb_t3c_protocol_sram_mod = {
"cxgb_t3c_protocol_sram",
cxgb_t3c_protocol_sram_modevent,
0
NULL
};
DECLARE_MODULE(cxgb_t3c_protocol_sram, cxgb_t3c_protocol_sram_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(cxgb_t3c_protocol_sram, 1);
@ -175,7 +175,7 @@ cxgb_t3c_tp_eeprom_modevent(module_t mod, int type, void *unused)
static moduledata_t cxgb_t3c_tp_eeprom_mod = {
"cxgb_t3c_tp_eeprom",
cxgb_t3c_tp_eeprom_modevent,
0
NULL
};
DECLARE_MODULE(cxgb_t3c_tp_eeprom, cxgb_t3c_tp_eeprom_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(cxgb_t3c_tp_eeprom, 1);

View File

@ -290,7 +290,7 @@ iwch_modevent(module_t mod, int cmd, void *arg)
static moduledata_t iwch_mod_data = {
"iw_cxgb",
iwch_modevent,
0
NULL
};
MODULE_VERSION(iw_cxgb, 1);

View File

@ -387,7 +387,7 @@ t3_tom_modevent(module_t mod, int cmd, void *arg)
static moduledata_t t3_tom_moddata= {
"t3_tom",
t3_tom_modevent,
0
NULL
};
MODULE_VERSION(t3_tom, 1);

View File

@ -768,7 +768,7 @@ t4_tom_modevent(module_t mod, int cmd, void *arg)
static moduledata_t t4_tom_moddata= {
"t4_tom",
t4_tom_modevent,
0
NULL
};
MODULE_VERSION(t4_tom, 1);

View File

@ -74,7 +74,7 @@ drm_modevent(module_t mod, int type, void *data)
static moduledata_t drm_mod = {
"drmn",
drm_modevent,
0
NULL
};
DECLARE_MODULE(drmn, drm_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(drmn, 1);

View File

@ -855,9 +855,9 @@ iscsi_modevent(module_t mod, int what, void *arg)
}
moduledata_t iscsi_mod = {
"iscsi",
(modeventhand_t) iscsi_modevent,
0
"iscsi",
(modeventhand_t) iscsi_modevent,
NULL
};
#ifdef ISCSI_ROOT

View File

@ -39,7 +39,7 @@ mxge_eth_z8e_fw_modevent(module_t mod, int type, void *unused)
static moduledata_t mxge_eth_z8e_fw_mod = {
"mxge_eth_z8e_fw",
mxge_eth_z8e_fw_modevent,
0
NULL
};
DECLARE_MODULE(mxge_eth_z8e_fw, mxge_eth_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(mxge_eth_z8e_fw, 1);

View File

@ -39,7 +39,7 @@ mxge_ethp_z8e_fw_modevent(module_t mod, int type, void *unused)
static moduledata_t mxge_ethp_z8e_fw_mod = {
"mxge_ethp_z8e_fw",
mxge_ethp_z8e_fw_modevent,
0
NULL
};
DECLARE_MODULE(mxge_ethp_z8e_fw, mxge_ethp_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(mxge_ethp_z8e_fw, 1);

View File

@ -39,7 +39,7 @@ mxge_rss_eth_z8e_fw_modevent(module_t mod, int type, void *unused)
static moduledata_t mxge_rss_eth_z8e_fw_mod = {
"mxge_rss_eth_z8e_fw",
mxge_rss_eth_z8e_fw_modevent,
0
NULL
};
DECLARE_MODULE(mxge_rss_eth_z8e_fw, mxge_rss_eth_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(mxge_rss_eth_z8e_fw, 1);

View File

@ -39,7 +39,7 @@ mxge_rss_ethp_z8e_fw_modevent(module_t mod, int type, void *unused)
static moduledata_t mxge_rss_ethp_z8e_fw_mod = {
"mxge_rss_ethp_z8e_fw",
mxge_rss_ethp_z8e_fw_modevent,
0
NULL
};
DECLARE_MODULE(mxge_rss_ethp_z8e_fw, mxge_rss_ethp_z8e_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(mxge_rss_ethp_z8e_fw, 1);

View File

@ -93,7 +93,7 @@ static int nvd_modevent(module_t mod, int type, void *arg)
moduledata_t nvd_mod = {
"nvd",
(modeventhand_t)nvd_modevent,
0
NULL
};
DECLARE_MODULE(nvd, nvd_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);

View File

@ -177,7 +177,7 @@ nvme_modevent(module_t mod, int type, void *arg)
moduledata_t nvme_mod = {
"nvme",
(modeventhand_t)nvme_modevent,
0
NULL
};
DECLARE_MODULE(nvme, nvme_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);

View File

@ -402,7 +402,7 @@ rndtest_modevent(module_t mod, int type, void *unused)
static moduledata_t rndtest_mod = {
"rndtest",
rndtest_modevent,
0
NULL
};
DECLARE_MODULE(rndtest, rndtest_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);
MODULE_VERSION(rndtest, 1);

View File

@ -171,7 +171,7 @@ streams_modevent(module_t mod, int type, void *unused)
static moduledata_t streams_mod = {
"streams",
streams_modevent,
0
NULL
};
DECLARE_MODULE(streams, streams_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);
MODULE_VERSION(streams, 1);

View File

@ -78,7 +78,7 @@ tdfx_linux_modevent(struct module *mod __unused, int what, void *arg __unused)
static moduledata_t tdfx_linux_mod = {
"tdfx_linux",
tdfx_linux_modevent,
0
NULL
};
/* As in SYSCALL_MODULE */

View File

@ -549,7 +549,7 @@ uether_modevent(module_t mod, int type, void *data)
static moduledata_t uether_mod = {
"uether",
uether_modevent,
0
NULL
};
struct mbuf *

View File

@ -668,7 +668,7 @@ utopia_mod_init(module_t mod, int what, void *arg)
static moduledata_t utopia_mod = {
"utopia",
utopia_mod_init,
0
NULL
};
DECLARE_MODULE(utopia, utopia_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);

View File

@ -269,7 +269,7 @@ virtio_modevent(module_t mod, int type, void *unused)
static moduledata_t virtio_mod = {
"virtio",
virtio_modevent,
0
NULL
};
DECLARE_MODULE(virtio, virtio_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);

View File

@ -133,6 +133,6 @@ ibcs2_modevent(module_t mod, int type, void *unused)
static moduledata_t ibcs2_mod = {
"ibcs2",
ibcs2_modevent,
0
NULL
};
DECLARE_MODULE_TIED(ibcs2, ibcs2_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -87,7 +87,7 @@ elink_idseq(u_char p)
static moduledata_t elink_mod = {
"elink",/* module name */
NULL, /* event handler */
0 /* extra data */
NULL /* extra data */
};
DECLARE_MODULE(elink, elink_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -1173,7 +1173,7 @@ linux_elf_modevent(module_t mod, int type, void *data)
static moduledata_t linux_elf_mod = {
"linuxelf",
linux_elf_modevent,
0
NULL
};
DECLARE_MODULE_TIED(linuxelf, linux_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY);

View File

@ -2124,7 +2124,7 @@ bstp_modevent(module_t mod, int type, void *data)
static moduledata_t bstp_mod = {
"bridgestp",
bstp_modevent,
0
NULL
};
DECLARE_MODULE(bridgestp, bstp_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -878,7 +878,7 @@ arc_modevent(module_t mod, int type, void *data)
static moduledata_t arc_mod = {
"arcnet",
arc_modevent,
0
NULL
};
DECLARE_MODULE(arcnet, arc_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);

View File

@ -496,7 +496,7 @@ atm_modevent(module_t mod, int type, void *data)
static moduledata_t atm_mod = {
"atm",
atm_modevent,
0
NULL
};
DECLARE_MODULE(atm, atm_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);

View File

@ -523,7 +523,7 @@ bridge_modevent(module_t mod, int type, void *data)
static moduledata_t bridge_mod = {
"if_bridge",
bridge_modevent,
0
NULL
};
DECLARE_MODULE(if_bridge, bridge_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -181,7 +181,7 @@ enc_modevent(module_t mod, int type, void *data)
static moduledata_t enc_mod = {
"if_enc",
enc_modevent,
0
NULL
};
DECLARE_MODULE(if_enc, enc_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);

View File

@ -978,7 +978,7 @@ epair_modevent(module_t mod, int type, void *data)
static moduledata_t epair_mod = {
"if_epair",
epair_modevent,
0
NULL
};
DECLARE_MODULE(if_epair, epair_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -1237,7 +1237,7 @@ ether_modevent(module_t mod, int type, void *data)
static moduledata_t ether_mod = {
"ether",
ether_modevent,
0
NULL
};
void

View File

@ -136,7 +136,7 @@ faithmodevent(mod, type, data)
static moduledata_t faith_mod = {
"if_faith",
faithmodevent,
0
NULL
};
DECLARE_MODULE(if_faith, faith_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -792,7 +792,7 @@ fddi_resolvemulti(ifp, llsa, sa)
static moduledata_t fddi_mod = {
"fddi", /* module name */
NULL, /* event handler */
0 /* extra data */
NULL /* extra data */
};
DECLARE_MODULE(fddi, fddi_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -845,7 +845,7 @@ firewire_modevent(module_t mod, int type, void *data)
static moduledata_t firewire_mod = {
"if_firewire",
firewire_modevent,
0
NULL
};
DECLARE_MODULE(if_firewire, firewire_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);

View File

@ -272,7 +272,7 @@ gifmodevent(mod, type, data)
static moduledata_t gif_mod = {
"if_gif",
gifmodevent,
0
NULL
};
DECLARE_MODULE(if_gif, gif_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -973,7 +973,7 @@ gremodevent(module_t mod, int type, void *data)
static moduledata_t gre_mod = {
"if_gre",
gremodevent,
0
NULL
};
DECLARE_MODULE(if_gre, gre_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -823,7 +823,7 @@ iso88025_modevent(module_t mod, int type, void *data)
static moduledata_t iso88025_mod = {
"iso88025",
iso88025_modevent,
0
NULL
};
DECLARE_MODULE(iso88025, iso88025_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -211,7 +211,7 @@ lagg_modevent(module_t mod, int type, void *data)
static moduledata_t lagg_mod = {
"if_lagg",
lagg_modevent,
0
NULL
};
DECLARE_MODULE(if_lagg, lagg_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -205,7 +205,7 @@ loop_modevent(module_t mod, int type, void *data)
static moduledata_t loop_mod = {
"if_lo",
loop_modevent,
0
NULL
};
DECLARE_MODULE(if_lo, loop_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);

View File

@ -494,7 +494,7 @@ sppp_modevent(module_t mod, int type, void *unused)
static moduledata_t spppmod = {
"sppp",
sppp_modevent,
0
NULL
};
MODULE_VERSION(sppp, 1);
DECLARE_MODULE(sppp, spppmod, SI_SUB_DRIVERS, SI_ORDER_ANY);

View File

@ -301,7 +301,7 @@ stfmodevent(mod, type, data)
static moduledata_t stf_mod = {
"if_stf",
stfmodevent,
0
NULL
};
DECLARE_MODULE(if_stf, stf_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -317,7 +317,7 @@ tunmodevent(module_t mod, int type, void *data)
static moduledata_t tun_mod = {
"if_tun",
tunmodevent,
0
NULL
};
DECLARE_MODULE(if_tun, tun_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -762,7 +762,7 @@ vlan_modevent(module_t mod, int type, void *data)
static moduledata_t vlan_mod = {
"if_vlan",
vlan_modevent,
0
NULL
};
DECLARE_MODULE(if_vlan, vlan_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -5400,7 +5400,7 @@ zlib_modevent(module_t mod, int type, void *unused)
static moduledata_t zlib_mod = {
"zlib",
zlib_modevent,
0
NULL
};
DECLARE_MODULE(zlib, zlib_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(zlib, 1);

View File

@ -822,7 +822,7 @@ wlan_modevent(module_t mod, int type, void *unused)
static moduledata_t wlan_mod = {
"wlan",
wlan_modevent,
0
NULL
};
DECLARE_MODULE(wlan, wlan_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(wlan, 1);

View File

@ -323,7 +323,7 @@ wlan_##name##_modevent(module_t mod, int type, void *unused) \
static moduledata_t name##_mod = { \
"wlan_" #name, \
wlan_##name##_modevent, \
0 \
NULL \
}; \
DECLARE_MODULE(wlan_##name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);\
MODULE_VERSION(wlan_##name, version); \

View File

@ -51,7 +51,7 @@ static int ngatm_handler(module_t, int, void *);
static moduledata_t ngatm_data = {
"ngatmbase",
ngatm_handler,
0
NULL
};
MODULE_VERSION(ngatmbase, NGATMBASE_VERSION);

View File

@ -3644,6 +3644,6 @@ igmp_modevent(module_t mod, int type, void *unused __unused)
static moduledata_t igmp_mod = {
"igmp",
igmp_modevent,
0
NULL
};
DECLARE_MODULE(igmp, igmp_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -2145,7 +2145,7 @@ carp_modevent(module_t mod, int type, void *data)
static moduledata_t carp_mod = {
"carp",
carp_modevent,
0
NULL
};
DECLARE_MODULE(carp, carp_mod, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY);

View File

@ -834,7 +834,7 @@ div_modevent(module_t mod, int type, void *unused)
static moduledata_t ipdivertmod = {
"ipdivert",
div_modevent,
0
NULL
};
DECLARE_MODULE(ipdivert, ipdivertmod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);

View File

@ -2944,7 +2944,7 @@ ip_mroute_modevent(module_t mod, int type, void *unused)
static moduledata_t ip_mroutemod = {
"ip_mroute",
ip_mroute_modevent,
0
NULL
};
DECLARE_MODULE(ip_mroute, ip_mroutemod, SI_SUB_PSEUDO, SI_ORDER_MIDDLE);

View File

@ -570,7 +570,7 @@ toecore_mod_handler(module_t mod, int cmd, void *arg)
static moduledata_t mod_data= {
"toecore",
toecore_mod_handler,
0
NULL
};
MODULE_VERSION(toecore, 1);

View File

@ -2059,7 +2059,7 @@ ip6_mroute_modevent(module_t mod, int type, void *unused)
static moduledata_t ip6_mroutemod = {
"ip6_mroute",
ip6_mroute_modevent,
0
NULL
};
DECLARE_MODULE(ip6_mroute, ip6_mroutemod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -3309,6 +3309,6 @@ mld_modevent(module_t mod, int type, void *unused __unused)
static moduledata_t mld_mod = {
"mld",
mld_modevent,
0
NULL
};
DECLARE_MODULE(mld, mld_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -361,7 +361,7 @@ send_modevent(module_t mod, int type, void *unused)
static moduledata_t sendmod = {
"send",
send_modevent,
0
NULL
};
DECLARE_MODULE(send, sendmod, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY);

View File

@ -2756,7 +2756,7 @@ ipfw_modevent(module_t mod, int type, void *unused)
static moduledata_t ipfwmod = {
"ipfw",
ipfw_modevent,
0
NULL
};
/* Define startup order. */

View File

@ -651,7 +651,7 @@ ipfw_nat_modevent(module_t mod, int type, void *unused)
static moduledata_t ipfw_nat_mod = {
"ipfw_nat",
ipfw_nat_modevent,
0
NULL
};
DECLARE_MODULE(ipfw_nat, ipfw_nat_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);

View File

@ -281,7 +281,7 @@ pflog_modevent(module_t mod, int type, void *data)
return error;
}
static moduledata_t pflog_mod = { "pflog", pflog_modevent, 0 };
static moduledata_t pflog_mod = { "pflog", pflog_modevent, NULL };
#define PFLOG_MODVER 1

View File

@ -2402,7 +2402,7 @@ pfsync_modevent(module_t mod, int type, void *data)
static moduledata_t pfsync_mod = {
"pfsync",
pfsync_modevent,
0
NULL
};
#define PFSYNC_MODVER 1

View File

@ -3722,7 +3722,7 @@ pf_modevent(module_t mod, int type, void *data)
static moduledata_t pf_mod = {
"pf",
pf_modevent,
0
NULL
};
DECLARE_MODULE(pf, pf_mod, SI_SUB_PSEUDO, SI_ORDER_FIRST);

View File

@ -147,7 +147,7 @@ nfssvc_modevent(module_t mod, int type, void *data)
static moduledata_t nfssvc_mod = {
"nfssvc",
nfssvc_modevent,
NULL,
NULL
};
DECLARE_MODULE(nfssvc, nfssvc_mod, SI_SUB_VFS, SI_ORDER_ANY);

View File

@ -552,7 +552,7 @@ nfsrv_modevent(module_t mod, int type, void *data)
static moduledata_t nfsserver_mod = {
"nfsserver",
nfsrv_modevent,
NULL,
NULL
};
DECLARE_MODULE(nfsserver, nfsserver_mod, SI_SUB_VFS, SI_ORDER_ANY);

View File

@ -1171,7 +1171,7 @@ cryptodev_modevent(module_t mod, int type, void *unused)
static moduledata_t cryptodev_mod = {
"cryptodev",
cryptodev_modevent,
0
NULL
};
MODULE_VERSION(cryptodev, 1);
DECLARE_MODULE(cryptodev, cryptodev_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);

View File

@ -215,7 +215,7 @@ printc("\t\treturn (error);\
static moduledata_t " modname "_fw_mod = {\
\"" modname "_fw\",\
" modname "_fw_modevent,\
0\
NULL\
};\
DECLARE_MODULE(" modname "_fw, " modname "_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);\
MODULE_VERSION(" modname "_fw, 1);\

View File

@ -193,12 +193,11 @@ kthrdlk_handler(module_t mod, int /*modeventtype_t*/ what,
}
static moduledata_t mod_data= {
"kthrdlk",
kthrdlk_handler,
0
};
"kthrdlk",
kthrdlk_handler,
NULL
};
MODULE_VERSION(kthrdlk, 1);
DECLARE_MODULE(kthrdlk, mod_data, SI_SUB_EXEC, SI_ORDER_ANY);

View File

@ -742,7 +742,7 @@ test_ccmp_modevent(module_t mod, int type, void *unused)
static moduledata_t test_ccmp_mod = {
"test_ccmp",
test_ccmp_modevent,
0
NULL
};
DECLARE_MODULE(test_ccmp, test_ccmp_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(test_ccmp, 1);

View File

@ -381,7 +381,7 @@ test_tkip_modevent(module_t mod, int type, void *unused)
static moduledata_t test_tkip_mod = {
"test_tkip",
test_tkip_modevent,
0
NULL
};
DECLARE_MODULE(test_tkip, test_tkip_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(test_tkip, 1);

View File

@ -328,7 +328,7 @@ test_wep_modevent(module_t mod, int type, void *unused)
static moduledata_t test_wep_mod = {
"test_wep",
test_wep_modevent,
0
NULL
};
DECLARE_MODULE(test_wep, test_wep_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
MODULE_VERSION(test_wep, 1);

View File

@ -268,7 +268,7 @@ kttcpdev_modevent(module_t mod, int type, void *unused)
static moduledata_t kttcpdev_mod = {
"kttcpdev",
kttcpdev_modevent,
0
NULL
};
MODULE_VERSION(kttcpdev, 1);
DECLARE_MODULE(kttcpdev, kttcpdev_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);