]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[libnetmap] Fix 32 bit compilation under gcc-6.4
authorAdrian Chadd <adrian@FreeBSD.org>
Mon, 2 Nov 2020 15:01:37 +0000 (15:01 +0000)
committerRyan Libby <rlibby@FreeBSD.org>
Tue, 29 Dec 2020 23:04:40 +0000 (15:04 -0800)
commit0286ee71041c8b831aeb1abe75b9d4f555c88a97
tree06adeb5c6d367da1c387dc0fd8395c2228d6dee2
parent62a77bb7edb28d572c8642edce974631037119bb
[libnetmap] Fix 32 bit compilation under gcc-6.4

Use uintptr_t to cast a uint64_t to a pointer type.
Yeah, it isn't technically correct for platforms with pointers
> 64 bits, but it's fine here.

This fixes 32 bit compat library builds on amd64 and also
mips32 builds.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D26790

(cherry picked from commit 26c29e743bbdbb82762540f72d4bc449bae2e092)
lib/libnetmap/nmreq.c