mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
In sys/compat/linux/linux_ioctl.c, work around a warning when a pointer
is compared to an integer, by casting the pointer to l_uintptr_t. No functional difference on both i386 and amd64. Reviewed by: ed, jhb MFC after: 1 week
This commit is contained in:
parent
54a55725a3
commit
69ee3e2f52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229402
|
@ -2182,7 +2182,7 @@ linux_ifconf(struct thread *td, struct ifconf *uifc)
|
|||
|
||||
CURVNET_SET(TD_TO_VNET(td));
|
||||
/* handle the 'request buffer size' case */
|
||||
if (ifc.ifc_buf == PTROUT(NULL)) {
|
||||
if ((l_uintptr_t)ifc.ifc_buf == PTROUT(NULL)) {
|
||||
ifc.ifc_len = 0;
|
||||
IFNET_RLOCK();
|
||||
TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
|
||||
|
|
Loading…
Reference in a new issue