mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 08:09:08 +00:00
reboot(8): adapt for vmmeter v_swappgsin expansion to 64bit
Otherwise reboot(8) requires COMPAT_FREEBSD11 kernel config option. PR: 275048 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42561
This commit is contained in:
parent
4b5634f4e5
commit
194cc45a81
@ -60,7 +60,7 @@ static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93";
|
||||
#include <utmpx.h>
|
||||
|
||||
static void usage(void) __dead2;
|
||||
static u_int get_pageins(void);
|
||||
static uint64_t get_pageins(void);
|
||||
|
||||
static int dohalt;
|
||||
|
||||
@ -70,7 +70,7 @@ main(int argc, char *argv[])
|
||||
struct utmpx utx;
|
||||
const struct passwd *pw;
|
||||
int ch, howto, i, fd, lflag, nflag, qflag, sverrno, Nflag;
|
||||
u_int pageins;
|
||||
uint64_t pageins;
|
||||
const char *user, *kernel = NULL;
|
||||
|
||||
if (strstr(getprogname(), "halt") != NULL) {
|
||||
@ -272,10 +272,10 @@ usage(void)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
static u_int
|
||||
static uint64_t
|
||||
get_pageins(void)
|
||||
{
|
||||
u_int pageins;
|
||||
uint64_t pageins;
|
||||
size_t len;
|
||||
|
||||
len = sizeof(pageins);
|
||||
@ -284,5 +284,5 @@ get_pageins(void)
|
||||
warnx("v_swappgsin");
|
||||
return (0);
|
||||
}
|
||||
return pageins;
|
||||
return (pageins);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user