summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_devstat.c10
-rw-r--r--sys/sys/devicestat.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index fe1f832e1a2d..21c3881f23dd 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: subr_devstat.c,v 1.1 1998/09/15 08:16:09 gibbs Exp $
*/
#include <sys/param.h>
@@ -38,7 +38,7 @@
#include <sys/devicestat.h>
static int devstat_num_devs;
-static int devstat_generation;
+static long devstat_generation;
static int devstat_version = DEVSTAT_VERSION;
static int devstat_current_devnumber;
@@ -212,7 +212,7 @@ sysctl_devstat SYSCTL_HANDLER_ARGS
/*
* First push out the generation number.
*/
- error = SYSCTL_OUT(req, &devstat_generation, sizeof(int));
+ error = SYSCTL_OUT(req, &devstat_generation, sizeof(long));
/*
* Now push out all the devices.
@@ -239,7 +239,7 @@ SYSCTL_PROC(_kern_devstat, OID_AUTO, all, CTLFLAG_RD|CTLTYPE_OPAQUE,
*/
SYSCTL_INT(_kern_devstat, OID_AUTO, numdevs, CTLFLAG_RD, &devstat_num_devs,
0, "Number of devices in the devstat list");
-SYSCTL_INT(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD, &devstat_generation,
- 0, "Devstat list generation");
+SYSCTL_LONG(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD,
+ &devstat_generation, 0, "Devstat list generation");
SYSCTL_INT(_kern_devstat, OID_AUTO, version, CTLFLAG_RD, &devstat_version,
0, "Devstat list version number");
diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h
index 7a52b5307db4..03d106a4f561 100644
--- a/sys/sys/devicestat.h
+++ b/sys/sys/devicestat.h
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: devicestat.h,v 1.1 1998/09/15 08:16:17 gibbs Exp $
*/
#ifndef _DEVICESTAT_H
@@ -45,7 +45,7 @@
* userland utilities to determine whether or not they are in sync with the
* kernel.
*/
-#define DEVSTAT_VERSION 1
+#define DEVSTAT_VERSION 2
/*
* These flags specify which statistics features are supported or not