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';