From 773adf0e44e60d9ff6424600d932d8fe823254e5 Mon Sep 17 00:00:00 2001 From: pirzyk Date: Fri, 22 Jun 2001 16:03:14 +0000 Subject: changed hostid from long to unsigned long to be able to store values > 2GB on i386 platforms. Also changed SYSCTL type from INT to ULONG and removed comment about it. PR: kern/21132 MFC after: 1 month --- sys/kern/kern_mib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/kern/kern_mib.c') diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 7d8ad0f..3fbb617 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -186,9 +186,8 @@ char domainname[MAXHOSTNAMELEN]; SYSCTL_STRING(_kern, KERN_NISDOMAINNAME, domainname, CTLFLAG_RW, &domainname, sizeof(domainname), "Name of the current YP/NIS domain"); -long hostid; -/* Some trouble here, if sizeof (int) != sizeof (long) */ -SYSCTL_INT(_kern, KERN_HOSTID, hostid, CTLFLAG_RW, &hostid, 0, "Host ID"); +unsigned long hostid; +SYSCTL_ULONG(_kern, KERN_HOSTID, hostid, CTLFLAG_RW, &hostid, 0, "Host ID"); /* * This is really cheating. These actually live in the libc, something -- cgit v1.1