Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2012 18:49:39 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229402 - head/sys/compat/linux
Message-ID:  <201201031849.q03IndxI036917@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Jan  3 18:49:39 2012
New Revision: 229402
URL: http://svn.freebsd.org/changeset/base/229402

Log:
  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

Modified:
  head/sys/compat/linux/linux_ioctl.c

Modified: head/sys/compat/linux/linux_ioctl.c
==============================================================================
--- head/sys/compat/linux/linux_ioctl.c	Tue Jan  3 18:40:41 2012	(r229401)
+++ head/sys/compat/linux/linux_ioctl.c	Tue Jan  3 18:49:39 2012	(r229402)
@@ -2182,7 +2182,7 @@ linux_ifconf(struct thread *td, struct i
 
 	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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201031849.q03IndxI036917>