summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mib.c
diff options
context:
space:
mode:
authorpirzyk <pirzyk@FreeBSD.org>2001-06-22 16:03:14 +0000
committerpirzyk <pirzyk@FreeBSD.org>2001-06-22 16:03:14 +0000
commit773adf0e44e60d9ff6424600d932d8fe823254e5 (patch)
treee5fed249f48be3a56f815fc6acaefaccbb771aae /sys/kern/kern_mib.c
parent237f8ec78e94aa5a8f5cc8e4bbc5bc9dbb122b8c (diff)
downloadFreeBSD-src-773adf0e44e60d9ff6424600d932d8fe823254e5.zip
FreeBSD-src-773adf0e44e60d9ff6424600d932d8fe823254e5.tar.gz
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
Diffstat (limited to 'sys/kern/kern_mib.c')
-rw-r--r--sys/kern/kern_mib.c5
1 files changed, 2 insertions, 3 deletions
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
OpenPOWER on IntegriCloud