git: 071364c85081 - stable/14 - reboot(8): adapt for vmmeter v_swappgsin expansion to 64bit

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 20 Nov 2023 01:40:19 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=071364c85081981b22bbf8651fb5307a543e9de9

commit 071364c85081981b22bbf8651fb5307a543e9de9
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-11-13 01:30:53 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-11-20 01:39:21 +0000

    reboot(8): adapt for vmmeter v_swappgsin expansion to 64bit
    
    PR:     275048
    
    (cherry picked from commit 194cc45a81f70aa280546b7a5e658028df0303e7)
---
 sbin/reboot/reboot.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index 6f656fd5f88c..bcb6c6bde05a 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -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);
 }