Make the hw.physmem and hw.usermem variables unsigned so that they dont

come up as negative on machines with >2GB ram.
This commit is contained in:
Peter Wemm 2001-06-22 22:07:01 +00:00
parent 3676cbfbf4
commit 1a6d55cecd
2 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@ sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
}
SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
0, 0, sysctl_hw_physmem, "I", "");
0, 0, sysctl_hw_physmem, "IU", "");
static int
sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
@ -174,7 +174,7 @@ sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
}
SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD,
0, 0, sysctl_hw_usermem, "I", "");
0, 0, sysctl_hw_usermem, "IU", "");
static int
sysctl_hw_availpages(SYSCTL_HANDLER_ARGS)

View File

@ -163,7 +163,7 @@ sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
}
SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
0, 0, sysctl_hw_physmem, "I", "");
0, 0, sysctl_hw_physmem, "IU", "");
static int
sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
@ -174,7 +174,7 @@ sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
}
SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD,
0, 0, sysctl_hw_usermem, "I", "");
0, 0, sysctl_hw_usermem, "IU", "");
static int
sysctl_hw_availpages(SYSCTL_HANDLER_ARGS)