summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-01-03 18:49:39 +0000
committerdim <dim@FreeBSD.org>2012-01-03 18:49:39 +0000
commitd106f2fd7cf6be7617b1756d893b5b6fba5310f4 (patch)
treefa3b11060a7471ba3680045b4d07a0bac0587b78
parent1cc7f925051adaa9304262a66284ddae3bac2924 (diff)
downloadFreeBSD-src-d106f2fd7cf6be7617b1756d893b5b6fba5310f4.zip
FreeBSD-src-d106f2fd7cf6be7617b1756d893b5b6fba5310f4.tar.gz
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
-rw-r--r--sys/compat/linux/linux_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 15e3136..a2b1dc0 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) {
OpenPOWER on IntegriCloud