Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2023 22:13:38 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 01e7e8c58f86 - stable/13 - kboot: Use unsigned long long.
Message-ID:  <202301242213.30OMDcl9088699@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=01e7e8c58f86c06f246dcaf368440d2b3bc070a3

commit 01e7e8c58f86c06f246dcaf368440d2b3bc070a3
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-12-02 19:41:01 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:41 +0000

    kboot: Use unsigned long long.
    
    For the 64-bit platforms, this is a nop. Currently kboot only supports
    64-bit platforms, though. If we support 32-bit in the future, this will
    become important.
    
    Noticed by:             rpokala
    Sponsored by:           Netflix
    
    (cherry picked from commit da5d0a1dbc2838eae7033254705c684d7a013fce)
---
 stand/kboot/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/kboot/util.c b/stand/kboot/util.c
index 938aad599e19..7d467a29b059 100644
--- a/stand/kboot/util.c
+++ b/stand/kboot/util.c
@@ -35,7 +35,7 @@ file2str(const char *fn, char *buffer, size_t buflen)
 bool
 file2u64(const char *fn, uint64_t *val)
 {
-	unsigned long v;
+	unsigned long long v;
 	char buffer[80];
 
 	if (!file2str(fn, buffer, sizeof(buffer)))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301242213.30OMDcl9088699>