diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2012-01-03 18:49:39 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2012-01-03 18:49:39 +0000 |
commit | 69ee3e2f52eb8cba6e103cd1de3f91a7ffe1ddc7 (patch) | |
tree | fa3b11060a7471ba3680045b4d07a0bac0587b78 | |
parent | 54a55725a3aa0923fa61d4b02180e4e7e05de54f (diff) | |
download | src-69ee3e2f52eb8cba6e103cd1de3f91a7ffe1ddc7.tar.gz src-69ee3e2f52eb8cba6e103cd1de3f91a7ffe1ddc7.zip |
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
Notes
Notes:
svn path=/head/; revision=229402
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 15e313639369..a2b1dc02c407 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -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) { |