Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2020 18:43:47 GMT
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 697684325da8 - main - [vale] Fix valectl to compile on a 32-bit platform
Message-ID:  <202012301843.0BUIhl7I039307@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=697684325da855f0dcb1ad02b09779575b05a906

commit 697684325da855f0dcb1ad02b09779575b05a906
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2020-12-29 18:20:43 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2020-12-30 18:40:43 +0000

    [vale] Fix valectl to compile on a 32-bit platform
    
    This shows up when compiling valectl on a 32 bit platform like i386 and mips32.
    gcc-6.4 complains about this (-Wint-to-pointer-cast).
    
    Reviewed by: vmaffione
    Differential Revision: https://reviews.freebsd.org/D27814
---
 usr.sbin/valectl/valectl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/valectl/valectl.c b/usr.sbin/valectl/valectl.c
index 7e219e2df7a3..bf1bc6229fb8 100644
--- a/usr.sbin/valectl/valectl.c
+++ b/usr.sbin/valectl/valectl.c
@@ -181,7 +181,7 @@ list_all(int fd, struct nmreq_header *hdr)
 {
 	int error;
 	struct nmreq_vale_list *vale_list =
-		(struct nmreq_vale_list *)hdr->nr_body;
+		(struct nmreq_vale_list *)(uintptr_t)hdr->nr_body;
 
 	for (;;) {
 		hdr->nr_name[0] = '\0';



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