summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-10-09 08:27:40 +0000
committerkevlo <kevlo@FreeBSD.org>2012-10-09 08:27:40 +0000
commit8747a46991f804159ec832961138fbafc8489e41 (patch)
treee7c16f01159a965270042d2eee89fe0f8bea4679 /tools/regression
parent543514a78ba423fb4c2351e080e8822ed44312d1 (diff)
downloadFreeBSD-src-8747a46991f804159ec832961138fbafc8489e41.zip
FreeBSD-src-8747a46991f804159ec832961138fbafc8489e41.tar.gz
Prefer NULL over 0 for pointers
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/kthread/kld/kthrdlk.c9
-rw-r--r--tools/regression/net80211/ccmp/test_ccmp.c2
-rw-r--r--tools/regression/net80211/tkip/test_tkip.c2
-rw-r--r--tools/regression/net80211/wep/test_wep.c2
4 files changed, 7 insertions, 8 deletions
diff --git a/tools/regression/kthread/kld/kthrdlk.c b/tools/regression/kthread/kld/kthrdlk.c
index 67825b6..a64dc2e 100644
--- a/tools/regression/kthread/kld/kthrdlk.c
+++ b/tools/regression/kthread/kld/kthrdlk.c
@@ -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);
-
diff --git a/tools/regression/net80211/ccmp/test_ccmp.c b/tools/regression/net80211/ccmp/test_ccmp.c
index d78be95..da13ac7 100644
--- a/tools/regression/net80211/ccmp/test_ccmp.c
+++ b/tools/regression/net80211/ccmp/test_ccmp.c
@@ -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);
diff --git a/tools/regression/net80211/tkip/test_tkip.c b/tools/regression/net80211/tkip/test_tkip.c
index 5a63978..3909bbd 100644
--- a/tools/regression/net80211/tkip/test_tkip.c
+++ b/tools/regression/net80211/tkip/test_tkip.c
@@ -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);
diff --git a/tools/regression/net80211/wep/test_wep.c b/tools/regression/net80211/wep/test_wep.c
index b498195..04bd054 100644
--- a/tools/regression/net80211/wep/test_wep.c
+++ b/tools/regression/net80211/wep/test_wep.c
@@ -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);
OpenPOWER on IntegriCloud