From 2c204a16314db5f3e7b100139a8dfd7deb4e2bd0 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 3 Feb 2009 07:54:42 +0000 Subject: Use NULL in preference to 0 in pointer contexts. --- sys/kern/subr_devstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern/subr_devstat.c') diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 8a7eff58e5a1..bbfed445ed1e 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -407,10 +407,10 @@ sysctl_devstat(SYSCTL_HANDLER_ARGS) * Sysctl entries for devstat. The first one is a node that all the rest * hang off of. */ -SYSCTL_NODE(_kern, OID_AUTO, devstat, CTLFLAG_RD, 0, "Device Statistics"); +SYSCTL_NODE(_kern, OID_AUTO, devstat, CTLFLAG_RD, NULL, "Device Statistics"); SYSCTL_PROC(_kern_devstat, OID_AUTO, all, CTLFLAG_RD|CTLTYPE_OPAQUE, - 0, 0, sysctl_devstat, "S,devstat", "All devices in the devstat list"); + NULL, 0, sysctl_devstat, "S,devstat", "All devices in the devstat list"); /* * Export the number of devices in the system so that userland utilities * can determine how much memory to allocate to hold all the devices. @@ -534,4 +534,4 @@ devstat_free(struct devstat *dsp) } SYSCTL_INT(_debug_sizeof, OID_AUTO, devstat, CTLFLAG_RD, - 0, sizeof(struct devstat), "sizeof(struct devstat)"); + NULL, sizeof(struct devstat), "sizeof(struct devstat)"); -- cgit v1.2.3