mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 02:42:46 +00:00
[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
This commit is contained in:
parent
bdbc2a6fc2
commit
697684325d
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user